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({
|
export default defineConfig({
|
||||||
plugins: [preact(), tailwindcss()],
|
plugins: [preact(), tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
|
// стейджинг смотрит доменом на vite — пускаем свой duckdns (точка = любые поддомены)
|
||||||
|
allowedHosts: [".alexey-homelab.duckdns.org"],
|
||||||
proxy: {
|
proxy: {
|
||||||
// Connect RPC calls in dev go straight to the Go server.
|
// Connect RPC calls in dev go straight to the Go server.
|
||||||
"/homelab.v1.HomelabService": apiTarget,
|
"/homelab.v1.HomelabService": apiTarget,
|
||||||
|
|||||||
Reference in New Issue
Block a user