astro-mail/astro.config.mjs

21 lines
514 B
JavaScript
Raw Normal View History

2024-11-14 10:15:43 +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
},
});