Switched from static to dynamic variables
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { PUBLIC_GALLERY_NAME } from '$env/static/public';
|
||||
import { PUBLIC_GALLERY_NAME } from '$env/dynamic/public';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
// Svelte 5 Runes for Reactivity
|
||||
|
||||
@@ -4,7 +4,7 @@ import { S3Client, GetObjectCommand } from '@aws-sdk/client-s3';
|
||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
||||
import {
|
||||
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({
|
||||
endpoint: B2_ENDPOINT,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { S3Client, ListObjectsV2Command, GetObjectCommand } from '@aws-sdk/clien
|
||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
||||
import {
|
||||
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({
|
||||
endpoint: B2_ENDPOINT,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// src/routes/login/+page.server.js
|
||||
import { fail, redirect } from '@sveltejs/kit';
|
||||
import { GALLERY_PASSWORD } from '$env/static/private';
|
||||
import { GALLERY_PASSWORD } from '$env/dynamic/private';
|
||||
|
||||
export const actions = {
|
||||
default: async ({ request, cookies }) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { enhance } from '$app/forms';
|
||||
import { PUBLIC_GALLERY_NAME } from '$env/static/public';
|
||||
import { PUBLIC_GALLERY_NAME } from '$env/dynamic/public';
|
||||
let form = $props();
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user