adding local docker compose with local postgres
This commit is contained in:
+2
-2
@@ -9,10 +9,10 @@ if (process.env.VERCEL_ENV !== "production") {
|
||||
// Set the WebSocket proxy to work with the local instance
|
||||
if (isDevContainer) {
|
||||
// Running inside a VS Code devcontainer
|
||||
neonConfig.wsProxy = (host) => "host.docker.internal:5481/v1";
|
||||
neonConfig.wsProxy = (host) => "pg_proxy:80/v1";
|
||||
} else {
|
||||
// Not running inside a VS Code devcontainer
|
||||
neonConfig.wsProxy = (host) => `${host}:5481/v1`;
|
||||
neonConfig.wsProxy = (host) => "pg_proxy:80/v1";
|
||||
}
|
||||
// Disable all authentication and encryption
|
||||
neonConfig.useSecureWebSocket = false;
|
||||
|
||||
Reference in New Issue
Block a user