Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangfengming committed Nov 21, 2023
1 parent d47f44b commit c746629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"dev:spa": "vite",
"dev:ssr": "VITE_SVELTE_HYDRATABLE=1 node ssr-dev-server",
"build:spa": "vite build",
"build:ssr": "export VITE_SVELTE_HYDRATABLE=1 && vite build --ssrManifest --outDir ${CSR_OUT:-dist/client} && vite build --ssr src/adapters/${ADAPTER:-node}/index.ts --outDir ${SSR_OUT:-dist/server} && rm ${CSR_OUT:-dist/client}/ssr-manifest.json",
"build:ssr": "export VITE_SVELTE_HYDRATABLE=1 && vite build --ssrManifest --outDir ${CSR_OUT:-dist/client} && vite build --ssr src/adapters/${ADAPTER:-node}/index.ts --outDir ${SSR_OUT:-dist/server} && rm -r ${CSR_OUT:-dist/client}/.vite",
"build:cloudflare": "ADAPTER=cloudflare CSR_OUT=dist SSR_OUT=functions npm run build:ssr && cp src/adapters/cloudflare/_routes.json dist && mv functions/index.js functions/[[catchall]].js",
"build:netlify": "ADAPTER=netlify npm run build:ssr",
"build:netlify-edge": "ADAPTER=netlify-edge npm run build:ssr",
"build:ssg": "ADAPTER=ssg CSR_OUT=dist SSR_OUT=.ssg npm run build:ssr && node .ssg/index.js && rm -rf .ssg && if [ ${NOJS:-0} -eq 1 ]; then rm dist/**/*.js; fi",
"build:ssg": "ADAPTER=ssg CSR_OUT=dist SSR_OUT=.ssg npm run build:ssr && node .ssg/index.js && rm -r .ssg && if [ ${NOJS:-0} -eq 1 ]; then rm dist/**/*.js; fi",
"start:ssr": "node dist/server/index.js",
"check": "svelte-check --tsconfig ./tsconfig.json",
"md2html": "node md2html.js"
Expand Down

0 comments on commit c746629

Please sign in to comment.