Skip to content

Commit

Permalink
dotenv should actually work now
Browse files Browse the repository at this point in the history
  • Loading branch information
FifthWit committed Apr 28, 2024
1 parent c325da6 commit 492bbf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pocketbaseurl="http://27.0.0.1:8090"
VITE_pocketbaseurl="https://foo.bar/"
2 changes: 1 addition & 1 deletion src/components/ConfigPreview.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pburl = 'http://127.0.0.1:8090';
const pburl = import.meta.env.VITE_POCKETBASE_URL;
import pb from '../lib/pocketbase';
import { useState } from "react";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/pocketbase.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PocketBase from 'pocketbase';

const pb = new PocketBase('http://127.0.0.1:8090');
const pb = new PocketBase(import.meta.env.VITE_POCKETBASE_URL);
export default pb

0 comments on commit 492bbf1

Please sign in to comment.