aissel-astro/astro.config.mjs

20 lines
513 B
JavaScript
Raw Permalink Normal View History

2024-11-07 04:39:56 +00:00
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
vite: {
envPrefix: 'PUBLIC_', // This ensures that variables with this prefix are exposed to the client
},
site: 'http://127.0.0.1',
integrations: [sitemap(),react()],
prefetch: {
defaultStrategy: 'viewport',
prefetchAll: true
},
server: {
host: true,
port: 4321, // or any preferred port
},
});