mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Prerender with Puppeteer
This commit is contained in:
3 files changed
+2331
-5
No files matched your search
+11
-2
@@ -1,5 +1,6 @@
|
||||
import path from "node:path";
|
||||
|
||||
import prerender from "@prerenderer/rollup-plugin";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
@@ -9,7 +10,15 @@ export default defineConfig(() => ({
|
||||
host: "::",
|
||||
port: 8080,
|
||||
},
|
||||
plugins: [react()],
|
||||
plugins: [
|
||||
react(),
|
||||
prerender({
|
||||
routes: [
|
||||
"/",
|
||||
// Add more routes to prerender...
|
||||
],
|
||||
}),
|
||||
],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
@@ -23,4 +32,4 @@ export default defineConfig(() => ({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
}));
|
||||
Reference in new issue
Block a user