a Linkat frontend.
at main 31 lines 956 B view raw
1import adapter from '@sveltejs/adapter-vercel'; 2import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; 3 4/** @type {import('@sveltejs/kit').Config} */ 5const config = { 6 // Consult https://svelte.dev/docs/kit/integrations 7 // for more information about preprocessors 8 preprocess: vitePreprocess(), 9 10 kit: { 11 // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. 12 // If your environment is not supported, or you settled on a specific environment, switch out the adapter. 13 // See https://svelte.dev/docs/kit/adapters for more information about adapters. 14 adapter: adapter(), 15 prerender: { 16 entries: ['*'], 17 origin: process.env.PUBLIC_ORIGIN || 'http://localhost:5713' 18 }, 19 alias: { 20 '$components': './src/lib/components', 21 '$css': './src/lib/css', 22 '$services': './src/lib/services', 23 '$utils': './src/lib/utils' 24 }, 25 env: { 26 publicPrefix: '' 27 } 28 } 29}; 30 31export default config;