forge
Explore
Log in

Don't you dare go Hollow

hezarfen_landing

Clone
★ 0

0 watching0 forksTypeScript581.6 KiB94b1804Burak Boduroğlu2 months ago15 commits

vite.config.ts27 lines, 1.0 KiBHistoryRawDownload
1import { defineConfig } from "vite";
2import { nitro } from "nitro/vite";
3import tailwindcss from "@tailwindcss/vite";
4
5import { solidStart } from "@solidjs/start/config";
6
7export default defineConfig({
8 plugins: [tailwindcss(), solidStart(), nitro()],
9
10 // The build is a server under .output/, run with bun. Nothing is
11 // prerendered: the page renders on request, which keeps one code path for
12 // the landing page and for /sitemap.xml and /healthz beside it.
13
14 define: {
15 // The commit this build came from, answered by /healthz so the deploy can
16 // tell a fresh process from a stale one still holding the port.
17 __COMMIT__: JSON.stringify(process.env.GITHUB_SHA ?? "dev"),
18 },
19
20 optimizeDeps: {
21 // SolidStart's dev error viewer imports these as ESM, but they ship
22 // CommonJS. Unless Vite pre-bundles them the raw files are served as-is
23 // and the named/default imports throw on load. Dev-only; the production
24 // build never pulls the toolbar in.
25 include: ["source-map-js", "error-stack-parser", "html-to-image"],
26 },
27});