@tdk-landscape/tdk-cli-core 1.3.36 → 1.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -160,7 +160,16 @@ def L3_generate_frontend_builder(res_path, build_cmd = RUNTIME_CONFIG["bun"]["ba
|
|
|
160
160
|
use_golden=use_golden,
|
|
161
161
|
))
|
|
162
162
|
parts.append("ENV NODE_ENV=production\n")
|
|
163
|
-
|
|
163
|
+
# Point Vite at the generated build config. Without --config, `vite build`
|
|
164
|
+
# looks for vite.config.ts in the service root (which is never generated
|
|
165
|
+
# there) and silently falls back to defaults - losing `base`, so the built
|
|
166
|
+
# index.html references /assets/* instead of /<service>/assets/*.
|
|
167
|
+
# Args passed after the script name are appended to the end of the script
|
|
168
|
+
# command, so they reach `vite build` while any preceding steps in the
|
|
169
|
+
# script (e.g. `tsc --noEmit &&`) still run.
|
|
170
|
+
parts.append(
|
|
171
|
+
"RUN " + build_cmd + " --config " + AUTOGENERATED_CONFIG_PATHS['vite_build'] + "\n"
|
|
172
|
+
)
|
|
164
173
|
return "".join(parts)
|
|
165
174
|
|
|
166
175
|
|
|
@@ -143,6 +143,7 @@ AUTOGENERATED_CONFIG_PATHS = {
|
|
|
143
143
|
'bunfig': AUTOGENERATED_FOLDER + '/' + PACKAGE_CONFIG_FILENAMES['bunfig'],
|
|
144
144
|
'bunfig_docker': AUTOGENERATED_FOLDER + '/' + PACKAGE_CONFIG_FILENAMES['bunfig_docker_autogenerated'],
|
|
145
145
|
'prisma': AUTOGENERATED_FOLDER + '/' + GENERATED_CONFIG_FILENAMES['prisma'],
|
|
146
|
+
'vite_build': AUTOGENERATED_FOLDER + '/' + GENERATED_CONFIG_FILENAMES['vite_build'],
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
# =============================================================================
|