Will the api key be hidden from the user?
# $lib/config.js
import { initializeApp } from 'firebase/app';
import { getFirestore } from "firebase/firestore/lite";
const firebaseConfig = {
apiKey: "my-key",
};
const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
#index.svelte
import {db} from "$lib/config"
db.get...and so on
Trying to understand how to deal with things you want to keep hidden in sveltekit as normally js is visible for the user if wanted through source.