Skip to content

Commit ae8ce04

Browse files
authored
chore: .env file pull for www (supabase#19511)
1 parent 05c674e commit ae8ce04

File tree

8 files changed

+531
-428
lines changed

8 files changed

+531
-428
lines changed

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev --port 3001",
7-
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node internals/getSecrets.js",
7+
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node ../../scripts/getSecrets.js -n local/docs",
88
"build": "next build",
99
"build:analyze": "ANALYZE=true next build",
1010
"start": "next start",

apps/studio/internals/getSecrets.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

apps/studio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev -p 8082",
7-
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node internals/getSecrets.js",
7+
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node ../../scripts/getSecrets.js -n local/studio",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "next lint",

apps/www/.env

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
# Replace this URL with the URL of your blog app
66

7-
NEXT_PUBLIC_URL="https://localhost:3000"
8-
NEXT_PUBLIC_DOCS_URL="http://localhost:3005"
9-
NEXT_PUBLIC_STUDIO_URL="https://localhost:8082"
10-
NEXT_PUBLIC_REFERENCE_DOCS_URL="https://localhost:3010"
11-
NEXT_PUBLIC_SITE_ORIGIN=http://localhost:3000
7+
NEXT_PUBLIC_URL="http://localhost:3000"
8+
NEXT_PUBLIC_DOCS_URL="http://localhost:3001"
9+
NEXT_PUBLIC_STUDIO_URL="http://localhost:8082"
10+
NEXT_PUBLIC_REFERENCE_DOCS_URL="http://localhost:3010"

apps/www/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
## Overview
44

55
Refer to the [Development Guide](../../DEVELOPERS.md) to learn how to run this site locally.
6+
7+
> [!NOTE]
8+
> **Supabase internal use:** To develop on Studio locally you can pull an appropriate .env file using
9+
10+
```bash
11+
npm i # install dependencies
12+
npm run dev:secrets:pull # Supabase internal use
13+
```

apps/www/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"scripts": {
77
"dev": "next --port 3000",
8+
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node ../../scripts/getSecrets.js -n local/www",
89
"build": "next build",
910
"export": "next export",
1011
"start": "next start",
@@ -65,6 +66,7 @@
6566
"yup": "^0.32.11"
6667
},
6768
"devDependencies": {
69+
"@aws-sdk/client-secrets-manager": "^3.468.0",
6870
"@types/classnames": "^2.3.1",
6971
"@types/dat.gui": "^0.7.10",
7072
"@types/mdx-js__react": "^1.5.6",

0 commit comments

Comments
 (0)