Skip to content

Commit 737c1a4

Browse files
committed
fix: supabase public key
1 parent 1f5eada commit 737c1a4

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_SUPABASE_KEY=

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ node_modules
55
*.vsix
66

77
ui/node_modules
8+
ui/.env
89

910
.DS_Store
1011

1112
TODOs.md
13+
14+
.env

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxtr-vscode",
33
"displayName": "Nuxtr",
44
"description": "An extension for Nuxt.js offering commands and tools to make your experience more pleasant.",
5-
"version": "0.1.9",
5+
"version": "0.1.10",
66
"packageManager": "[email protected]",
77
"engines": {
88
"vscode": "^1.80.0"
@@ -830,15 +830,18 @@
830830
"start:ui": "cd ui && yarn start",
831831
"build:ui": "cd ui && yarn build",
832832
"dev:ui": "cd ui && yarn dev",
833-
"vscode:prepublish": "npm run compile",
833+
"vscode:prepublish": "npm run esbuild-base -- --minify",
834+
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
835+
"esbuild": "npm run esbuild-base -- --sourcemap",
836+
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
834837
"compile": "tsc -p ./",
835838
"watch": "tsc -watch -p ./",
836839
"pretest": "npm run compile && npm run lint",
837840
"lint": "eslint ./src --ext .ts --fix",
838841
"test": "node ./out/test/runTest.js",
839-
"package": "vsce package --no-dependencies",
840-
"publish:release": "vsce publish --no-dependencies",
841-
"publish:pre": "vsce publish --pre-release --no-dependencies"
842+
"package": "vsce package",
843+
"publish:release": "vsce publish",
844+
"publish:pre": "vsce publish --pre-release"
842845
},
843846
"devDependencies": {
844847
"@types/mocha": "^10.0.1",
@@ -847,6 +850,7 @@
847850
"@typescript-eslint/eslint-plugin": "^6.0.0",
848851
"@typescript-eslint/parser": "^6.0.0",
849852
"@vscode/test-electron": "^2.3.3",
853+
"esbuild": "^0.18.17",
850854
"eslint": "^8.44.0",
851855
"mocha": "^10.2.0",
852856
"typescript": "^5.1.6"

ui/build/assets/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/src/lib/supabaseClient.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { createClient } from "@supabase/supabase-js";
22

33
const supabaseUrl = "https://ozgtbqizepstargxfqcm.supabase.co";
4-
const supabaseKey =
5-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im96Z3RicWl6ZXBzdGFyZ3hmcWNtIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY4MjgzODExOCwiZXhwIjoxOTk4NDE0MTE4fQ.TZ8sWLB6ru1tULm3s3C96V1xaKJRjbpQii-MscyiOZ0";
6-
7-
export const supabase = createClient(supabaseUrl, supabaseKey);
8-
9-
4+
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_KEY;
105

6+
export const supabase = createClient(supabaseUrl, supabaseAnonKey);

0 commit comments

Comments
 (0)