21 lines
514 B
JavaScript
Executable File
21 lines
514 B
JavaScript
Executable File
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
|
|
},
|
|
});
|