How to stop prerendering #1356
Replies: 3 comments
-
It only prerenders to generate the index.html. Without it you would need a server to serve the initial html. Prerender for SSR false only runs entry server and doesn't import your application so it shouldn't have any issue. Maybe you could provide the error so we can see what the issue is. |
Beta Was this translation helpful? Give feedback.
0 replies
-
┌────────────────────────────────────┐
│ ⚙ Preparing app for netlify... │
└────────────────────────────────────┘
✔ Generated public dist vinxi 12:01:05 PM
ℹ Initializing prerenderer vinxi 12:01:05 PM
ℹ Building Nitro Server (preset: nitro-prerender) vinxi 12:01:05 PM
✔ Nitro server built vinxi 12:01:05 PM
✔ You can preview this build using npx serve ../../dist vinxi 12:01:05 PM
ERROR Worker is not defined 12:01:05 PM
at new SQLocal (node_modules/sqlocal/dist/client.js:218:27)
at .vinxi/prerender/chunks/nitro/nitro-prerenderer.mjs:4254:9
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
at async prerender (node_modules/nitropack/dist/shared/nitro.0a84349b.mjs:56:26)
at async createBuild (node_modules/vinxi/lib/build.js:311:2)
at async Object.run (node_modules/vinxi/bin/cli.mjs:213:5)
at async runCommand (node_modules/citty/dist/index.mjs:316:16)
at async runCommand (node_modules/citty/dist/index.mjs:307:11)
at async runMain (node_modules/citty/dist/index.mjs:445:7)
ERROR Worker is not defined 12:01:05 PM
error: script "build" exited with code 1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
source repo: https://github.com/vanillacode314/call-rotator |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build a client only app which uses client only apis, and would like to stop prerendering so build doesn't fail
package.json
vite config
Thanks for any help :)
Beta Was this translation helpful? Give feedback.
All reactions