mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 08:47:23 +00:00
Prerender with Puppeteer
This commit is contained in:
3 files changed
+2330
-4
No files matched your search
Generated
+2318
-3
File diff suppressed because it is too large.
Load diff
@@ -69,6 +69,8 @@
|
|||||||
"@eslint/js": "^9.9.0",
|
"@eslint/js": "^9.9.0",
|
||||||
"@html-eslint/eslint-plugin": "^0.41.0",
|
"@html-eslint/eslint-plugin": "^0.41.0",
|
||||||
"@html-eslint/parser": "^0.41.0",
|
"@html-eslint/parser": "^0.41.0",
|
||||||
|
"@prerenderer/renderer-puppeteer": "^1.2.4",
|
||||||
|
"@prerenderer/rollup-plugin": "^0.3.12",
|
||||||
"@tailwindcss/typography": "^0.5.15",
|
"@tailwindcss/typography": "^0.5.15",
|
||||||
"@testing-library/jest-dom": "^6.6.3",
|
"@testing-library/jest-dom": "^6.6.3",
|
||||||
"@testing-library/react": "^16.3.0",
|
"@testing-library/react": "^16.3.0",
|
||||||
|
|||||||
+10
-1
@@ -1,5 +1,6 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
|
import prerender from "@prerenderer/rollup-plugin";
|
||||||
import react from "@vitejs/plugin-react-swc";
|
import react from "@vitejs/plugin-react-swc";
|
||||||
import { defineConfig } from "vitest/config";
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
@@ -9,7 +10,15 @@ export default defineConfig(() => ({
|
|||||||
host: "::",
|
host: "::",
|
||||||
port: 8080,
|
port: 8080,
|
||||||
},
|
},
|
||||||
plugins: [react()],
|
plugins: [
|
||||||
|
react(),
|
||||||
|
prerender({
|
||||||
|
routes: [
|
||||||
|
"/",
|
||||||
|
// Add more routes to prerender...
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
],
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: 'jsdom',
|
environment: 'jsdom',
|
||||||
|
|||||||
Reference in new issue
Block a user