Skip to content
Snippets Groups Projects
Commit 1c990fe7 authored by Quentin Bramas's avatar Quentin Bramas
Browse files

static generation

parent 68ee946c
Branches
No related merge requests found
Pipeline #288323 passed with stages
in 57 seconds
......@@ -11,7 +11,7 @@ stages:
variables:
# Répertoire où le site sera généré
PUBLIC_DIR: dist
PUBLIC_DIR: .output/public
before_script:
# Installer les dépendances
......@@ -21,7 +21,7 @@ build:
stage: build
script:
# Construire le site avec Vite (le bundler par défaut pour SolidJS)
- yarn build
- yarn build-static
artifacts:
paths:
- $PUBLIC_DIR
......
import { defineConfig } from "@solidjs/start/config";
export default defineConfig({});
export default defineConfig({
ssr: true,
server: {
prerender: {
crawlLinks: true
},
preset: 'static'
}
});
\ No newline at end of file
......@@ -5,7 +5,8 @@
"dev": "vinxi dev",
"build": "vinxi build",
"start": "vinxi start",
"version": "vinxi version"
"version": "vinxi version",
"build-static": "vinxi build --preset static"
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment