hezarfen_landing
Clone
https://git.tahinli.com/archive/hezarfen_landing.git
0 watching0 forksTypeScript581.6 KiB94b1804Burak Boduroğlu2 months ago15 commits
| 1 | import { defineConfig } from "vite"; |
| 2 | import { nitro } from "nitro/vite"; |
| 3 | import tailwindcss from "@tailwindcss/vite"; |
| 4 | |
| 5 | import { solidStart } from "@solidjs/start/config"; |
| 6 | |
| 7 | export 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 | }); |