CTAO portal demo (Astro + Sveltia)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
// Static output (zero runtime) — the whole point of the git-based approach.
|
||||
export default defineConfig({
|
||||
output: 'static',
|
||||
server: { port: 4321, host: true },
|
||||
vite: {
|
||||
server: {
|
||||
// Same-origin path for the Sveltia/Decap local backend proxy (default port
|
||||
// moved to 8082 to avoid colliding with Metro on 8081). Proxying it here
|
||||
// means the CMS admin talks to one origin, so editing also works through the
|
||||
// cloudflared tunnel from the phone.
|
||||
proxy: {
|
||||
'/api/v1': { target: 'http://localhost:8082', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user