fix: remove port from 3000 to 3001
This commit is contained in:
@@ -167,7 +167,7 @@ At the end of implementation, guide users thoroughly on remaining next steps (e.
|
||||
|
||||
```env
|
||||
BETTER_AUTH_SECRET=<32+ chars, generate with: openssl rand -base64 32>
|
||||
BETTER_AUTH_URL=http://localhost:3000
|
||||
BETTER_AUTH_URL=http://localhost:3001
|
||||
DATABASE_URL=<your database connection string>
|
||||
```
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ capture() {
|
||||
|
||||
# --- edit below ---------------------------------------------------------
|
||||
|
||||
step "Open the app at http://localhost:3000 and sign in."
|
||||
step "Open the app at http://localhost:3001 and sign in."
|
||||
|
||||
capture ERRORED "Click the 'Export' button. Did it throw an error? (y/n)"
|
||||
|
||||
|
||||
@@ -17,4 +17,4 @@ BETTER_AUTH_URL=http://localhost:3080
|
||||
|
||||
# Dashboard (only VITE_ variables are exposed to browser code)
|
||||
VITE_PUBLIC_API_URL=http://localhost:3080
|
||||
VITE_PUBLIC_URL=http://localhost:3000
|
||||
VITE_PUBLIC_URL=http://localhost:3001
|
||||
|
||||
@@ -27,5 +27,5 @@ export function getUrl() {
|
||||
return `https://${process.env.VERCEL_URL}`;
|
||||
}
|
||||
|
||||
return "http://localhost:3000";
|
||||
return "http://localhost:3001";
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ server {
|
||||
error_log /var/log/nginx/dashboard.basango.ngandu.dev.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Deployment
|
||||
|
||||
The production checkout lives at `/var/www/html/basango.ngandu.dev`. PM2 runs the API on
|
||||
`127.0.0.1:3080` and the dashboard on `127.0.0.1:3000`; Nginx is the only public entrypoint.
|
||||
`127.0.0.1:3080` and the dashboard on `127.0.0.1:3001`; Nginx is the only public entrypoint.
|
||||
|
||||
## Nginx
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ module.exports = {
|
||||
env: {
|
||||
HOST: "127.0.0.1",
|
||||
NODE_ENV: "prod",
|
||||
PORT: "3000",
|
||||
PORT: "3001",
|
||||
VITE_PUBLIC_API_URL: "https://api.basango.ngandu.dev",
|
||||
VITE_PUBLIC_URL: "https://dashboard.basango.ngandu.dev",
|
||||
},
|
||||
|
||||
@@ -10,8 +10,8 @@ export const ApiConfigurationSchema = z.object({
|
||||
.array(z.string())
|
||||
.optional()
|
||||
.default([
|
||||
"http://localhost:3000",
|
||||
"http://127.0.0.1:3000",
|
||||
"http://localhost:3001",
|
||||
"http://127.0.0.1:3001",
|
||||
"https://dashboard.basango.ngandu.dev",
|
||||
]),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user