vestige/apps/dashboard/svelte.config.js
Sam Valladares 6837198328 feat(launch): waitlist page, raw-WebGPU hero, supabase + vercel infra
The July 14 launch surface, previously uncommitted:
- /dashboard/launch raw-WebGPU particle "memory brain" hero (RawVestigeEngine,
  NeuralWordmark, dendrite sign) + DOM waitlist overlay with share/referral.
- Supabase waitlist client + migrations + welcome edge function; legacy waitlist
  archived under supabase/legacy.
- vercel.json deploy config, root-redirect env wiring, base-path config,
  graph-only route, Playwright launch verifiers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-27 11:13:02 -05:00

41 lines
1.2 KiB
JavaScript

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
const appVersion = process.env.VESTIGE_DASHBOARD_VERSION ?? process.env.npm_package_version ?? 'dev';
// Base path the app is served from. Defaults to '/dashboard' for local dev and
// the embedded release binary. CI overrides it (e.g. '/vestige') so assets
// resolve correctly when published to a GitHub Pages project subpath.
const basePath = process.env.VESTIGE_BASE_PATH ?? '/dashboard';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
// 200.html (not index.html) is the SPA fallback so it never clobbers a
// PRERENDERED root index.html. The standalone promo build prerenders the
// waitlist page at "/", and that index.html must survive as real HTML so
// visitors see the signup instantly with no empty-shell router boot.
fallback: '200.html',
precompress: true,
strict: false
}),
paths: {
base: basePath
},
version: {
name: appVersion
},
alias: {
$lib: 'src/lib',
$components: 'src/lib/components',
$stores: 'src/lib/stores',
$types: 'src/lib/types'
}
}
};
export default config;