DevOps: add svelte-kit sync step to Dockerfile before build
Fixes a build warning about missing .svelte-kit/tsconfig.json that appears when building inside Docker. Running npx svelte-kit sync pre-generates the required SvelteKit scaffolding before the main build step. Also update README title to reflect Svelte v5 and trim a trailing whitespace in the environment handling section.
This commit is contained in:
@@ -16,6 +16,10 @@ COPY . .
|
|||||||
ARG BUILD_MODE=staging
|
ARG BUILD_MODE=staging
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
# Sync the SvelteKit project to generate ./.svelte-kit/tsconfig.json
|
||||||
|
# and other required files, which avoids the build warning.
|
||||||
|
RUN npx svelte-kit sync
|
||||||
|
|
||||||
# Perform the build based on the BUILD_MODE argument.
|
# Perform the build based on the BUILD_MODE argument.
|
||||||
# This runs the existing scripts in package.json, which already
|
# This runs the existing scripts in package.json, which already
|
||||||
# handle copying the correct .env file to .env.production for Vite.
|
# handle copying the correct .env file to .env.production for Vite.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# One Sky IT's Aether App - SvelteKit v2
|
# One Sky IT's Aether App - SvelteKit v2 with Svelte v5
|
||||||
|
|
||||||
This uses SvelteKit version 2.x with Svelte version 5.x, DexieJS 4.x, TailwindCSS 4.1, and Skeleton.
|
This uses SvelteKit version 2.x with Svelte version 5.x, DexieJS 4.x, TailwindCSS 4.1, and Skeleton.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user