mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 12:00:01 -04:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
import tailwind from "@astrojs/tailwind";
|
|
import icon from "astro-icon";
|
|
import svelte from "@astrojs/svelte";
|
|
|
|
import node from "@astrojs/node";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [tailwind(), icon(), svelte()],
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
"/api/catalog-assets": {
|
|
target: "http://localhost:8080/api/catalog-assets",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api\/catalog-assets/, ""),
|
|
},
|
|
"/images": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
"/videos": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
"/styles": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
"/api/packages": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
"/api/catalog-pages": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
output: "server",
|
|
adapter: node({
|
|
mode: "hybrid",
|
|
}),
|
|
});
|