mirror of
https://github.com/Lissy93/personal-security-checklist.git
synced 2024-12-24 23:09:32 -05:00
Adds static adapters
This commit is contained in:
parent
12b708651d
commit
cb3b87c1f3
@ -107,3 +107,9 @@ Notice that you might need a [Vercel account](https://docs.Vercel.com/get-starte
|
||||
The project is ready to be deployed to Vercel. However, you will need to create a git repository and push the code to it.
|
||||
|
||||
You can [deploy your site to Vercel](https://vercel.com/docs/concepts/deployments/overview) either via a Git provider integration or through the Vercel CLI.
|
||||
|
||||
## Static Site Generator (Node.js)
|
||||
|
||||
```shell
|
||||
npm run build.server
|
||||
```
|
||||
|
19
web/adapters/static/vite.config.mts
Normal file
19
web/adapters/static/vite.config.mts
Normal file
@ -0,0 +1,19 @@
|
||||
import { staticAdapter } from "@builder.io/qwik-city/adapters/static/vite";
|
||||
import { extendConfig } from "@builder.io/qwik-city/vite";
|
||||
import baseConfig from "../../vite.config.mts";
|
||||
|
||||
export default extendConfig(baseConfig, () => {
|
||||
return {
|
||||
build: {
|
||||
ssr: true,
|
||||
rollupOptions: {
|
||||
input: ["@qwik-city-plan"],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
staticAdapter({
|
||||
origin: "https://yoursite.qwik.dev",
|
||||
}),
|
||||
],
|
||||
};
|
||||
});
|
@ -5,6 +5,7 @@
|
||||
"build.client": "vite build",
|
||||
"build.preview": "vite build --ssr src/entry.preview.tsx",
|
||||
"build.server": "vite build -c adapters/vercel-edge/vite.config.mts",
|
||||
"build.static": "vite build -c adapters/static/vite.config.mts",
|
||||
"build.types": "tsc --incremental --noEmit",
|
||||
"deploy": "vercel deploy",
|
||||
"dev": "vite --mode ssr",
|
||||
|
Loading…
Reference in New Issue
Block a user