Switched from static to dynamic variables

This commit is contained in:
Alex Rennie-Lis committed 2026-06-28 23:19:21 +01:00
1 parent db0a5696d6
commit bed8de789e
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
<script> <script>
import { PUBLIC_GALLERY_NAME } from '$env/static/public'; import { PUBLIC_GALLERY_NAME } from '$env/dynamic/public';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
// Svelte 5 Runes for Reactivity // Svelte 5 Runes for Reactivity
+1 -1
View File
@@ -4,7 +4,7 @@ import { S3Client, GetObjectCommand } from '@aws-sdk/client-s3';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'; import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import { import {
B2_ENDPOINT, B2_REGION, B2_ACCESS_KEY_ID, B2_SECRET_ACCESS_KEY, B2_BUCKET_NAME B2_ENDPOINT, B2_REGION, B2_ACCESS_KEY_ID, B2_SECRET_ACCESS_KEY, B2_BUCKET_NAME
} from '$env/static/private'; } from '$env/dynamic/private';
const s3 = new S3Client({ const s3 = new S3Client({
endpoint: B2_ENDPOINT, endpoint: B2_ENDPOINT,
+1 -1
View File
@@ -3,7 +3,7 @@ import { S3Client, ListObjectsV2Command, GetObjectCommand } from '@aws-sdk/clien
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'; import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import { import {
B2_ENDPOINT, B2_REGION, B2_ACCESS_KEY_ID, B2_SECRET_ACCESS_KEY, B2_BUCKET_NAME B2_ENDPOINT, B2_REGION, B2_ACCESS_KEY_ID, B2_SECRET_ACCESS_KEY, B2_BUCKET_NAME
} from '$env/static/private'; } from '$env/dynamic/private';
const s3 = new S3Client({ const s3 = new S3Client({
endpoint: B2_ENDPOINT, endpoint: B2_ENDPOINT,
+1 -1
View File
@@ -1,6 +1,6 @@
// src/routes/login/+page.server.js // src/routes/login/+page.server.js
import { fail, redirect } from '@sveltejs/kit'; import { fail, redirect } from '@sveltejs/kit';
import { GALLERY_PASSWORD } from '$env/static/private'; import { GALLERY_PASSWORD } from '$env/dynamic/private';
export const actions = { export const actions = {
default: async ({ request, cookies }) => { default: async ({ request, cookies }) => {
+1 -1
View File
@@ -1,6 +1,6 @@
<script> <script>
import { enhance } from '$app/forms'; import { enhance } from '$app/forms';
import { PUBLIC_GALLERY_NAME } from '$env/static/public'; import { PUBLIC_GALLERY_NAME } from '$env/dynamic/public';
let form = $props(); let form = $props();
</script> </script>