Skip to content

Commit

Permalink
Screw it, it's a public key
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeetii committed Oct 2, 2024
1 parent df45eb4 commit 9cb75d4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ jobs:
cache-dependency-path: "frontend/pnpm-lock.yaml"
- name: Install dependencies in Svelte subfolder
run: pnpm install
- name: Make envfile
run: |
echo "PUBLIC_MAPTILER_KEY=${PUBLIC_MAPTILER_KEY}" > .env
- name: Build in Svelte subfolder
run: pnpm --env-file=.env build
run: pnpm build
- name: Check
run: pnpm check

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ jobs:
cache-dependency-path: "frontend/pnpm-lock.yaml"
- name: Install dependencies in Svelte subfolder
run: pnpm install
- name: Make envfile
run: |
echo "PUBLIC_MAPTILER_KEY=${PUBLIC_MAPTILER_KEY}" > .env
- name: Build in Svelte subfolder
run: pnpm --env-file=.env build
run: pnpm build
- name: Check
run: pnpm check

Expand Down
3 changes: 1 addition & 2 deletions frontend/src/lib/components/Map.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { PUBLIC_MAPTILER_KEY } from '$env/static/public';
import type { MapStore } from '$lib/stores';
import { MAPSTORE_CONTEXT_KEY } from '$lib/stores';
import maplibregl, {
Expand Down Expand Up @@ -30,7 +29,7 @@
const map = new Map({
container: mapContainer,
style: `https://api.maptiler.com/maps/c852a07e-70f5-49c3-aebf-ad7d488e4495/style.json?key=${PUBLIC_MAPTILER_KEY}`,
style: `https://api.maptiler.com/maps/c852a07e-70f5-49c3-aebf-ad7d488e4495/style.json?key=KxXGPUn8leqAeKO3GqWn`,
center: center,
zoom: zoom,
hash: true,
Expand Down
Binary file modified frontend/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9cb75d4

Please sign in to comment.