Skip to content

Commit

Permalink
Static Var test
Browse files Browse the repository at this point in the history
  • Loading branch information
megastruktur committed Feb 15, 2024
1 parent 108ef26 commit 404a366
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-docker-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
push_to_registry:
name: Push Docker image to Dockerhub
runs-on: ubuntu-latest
env:
PUBLIC_POCKETBASE_URL: ${{ vars.PUBLIC_POCKETBASE_URL }}
steps:
- uses: actions/checkout@v3
- name: Log in to Dockerhub
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pocketbase.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Pocketbase from "pocketbase";
import { writable } from "svelte/store"
import { env } from '$env/dynamic/public';
import { PUBLIC_POCKETBASE_URL } from '$env/static/public';

export const pb = new Pocketbase(env.PUBLIC_POCKETBASE_URL);
export const pb = new Pocketbase(PUBLIC_POCKETBASE_URL);
pb.autoCancellation(false);

export const currentUser = writable(pb.authStore.model)
Expand Down
1 change: 1 addition & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export const ssr = false;
export const prerender = true;
export const csr = true;
export const trailingSlash = "always";
export const load = ({ url }) => {
const { pathname } = url

Expand Down

0 comments on commit 404a366

Please sign in to comment.