docs: 🔥 added netlify

This commit is contained in:
Leifer Mendez
2022-12-28 20:51:28 +01:00
parent 5b796a163e
commit be39e8fd30
14 changed files with 7644 additions and 832 deletions

View File

@@ -0,0 +1,20 @@
import { netifyEdgeAdaptor } from '@builder.io/qwik-city/adaptors/netlify-edge/vite'
import { extendConfig } from '@builder.io/qwik-city/vite'
import baseConfig from '../../vite.config'
export default extendConfig(baseConfig, () => {
return {
build: {
ssr: true,
rollupOptions: {
input: ['src/entry.netlify-edge.tsx', '@qwik-city-plan'],
},
outDir: '.netlify/edge-functions/entry.netlify-edge',
},
plugins: [
netifyEdgeAdaptor({
staticGenerate: true,
}),
],
}
})