20 lines
513 B
JavaScript
20 lines
513 B
JavaScript
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
|
|
},
|
|
}); |