fix: allow duckdns hosts for vite dev server (staging)
This commit is contained in:
@@ -9,6 +9,8 @@ const apiTarget = `http://localhost:${process.env.BACKEND_PORT ?? 8080}`;
|
||||
export default defineConfig({
|
||||
plugins: [preact(), tailwindcss()],
|
||||
server: {
|
||||
// стейджинг смотрит доменом на vite — пускаем свой duckdns (точка = любые поддомены)
|
||||
allowedHosts: [".alexey-homelab.duckdns.org"],
|
||||
proxy: {
|
||||
// Connect RPC calls in dev go straight to the Go server.
|
||||
"/homelab.v1.HomelabService": apiTarget,
|
||||
|
||||
Reference in New Issue
Block a user