23 lines
380 B
JavaScript
23 lines
380 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import react from '@astrojs/react';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [react()],
|
|
server: {
|
|
port: 3000,
|
|
host: true
|
|
},
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|