feat: switch from vercel -> node SSR
This commit is contained in:
parent
8762f4c856
commit
af47310a93
4 changed files with 3437 additions and 2935 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,5 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
.vercel/
|
|
||||||
|
|
||||||
*~
|
*~
|
||||||
*swo
|
*swo
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
import vercel from '@astrojs/vercel/serverless';
|
|
||||||
import prefetch from "@astrojs/prefetch";
|
import node from "@astrojs/node";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: "server",
|
output: "server",
|
||||||
integrations: [prefetch()],
|
adapter: node({
|
||||||
adapter: vercel()
|
mode: "standalone"
|
||||||
|
})
|
||||||
});
|
});
|
13
package.json
13
package.json
|
@ -16,15 +16,14 @@
|
||||||
"publish:minor": "npm version minor && npm publish --access public"
|
"publish:minor": "npm version minor && npm publish --access public"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^3.2.0"
|
"astro": "^4.12.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/prefetch": "^0.4.0",
|
"@astrojs/node": "^8.3.2",
|
||||||
"@astrojs/vercel": "^5.0.2",
|
"@ayco/astro-resume": "^0.4.0",
|
||||||
"@ayco/astro-resume": "^0.3.9",
|
"@extractus/article-extractor": "^8.0.10",
|
||||||
"@extractus/article-extractor": "^8.0.2",
|
|
||||||
"astro-iconify": "^1.2.0",
|
"astro-iconify": "^1.2.0",
|
||||||
"sass": "^1.68.0",
|
"sass": "^1.77.8",
|
||||||
"ultrahtml": "^1.5.2"
|
"ultrahtml": "^1.5.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6349
pnpm-lock.yaml
6349
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue