Skip to content

Commit 7f8e205

Browse files
committed
fix: config glob pattern, string replace
!nuf
1 parent 7e6a73a commit 7f8e205

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/ts/firebase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function init(callback: ReadyCallback): Promise<void> {
5454
try {
5555
let firebaseConfig: FirebaseOptions | null;
5656

57-
const constants = import.meta.glob("./constants/firebase-config*.ts");
57+
const constants = import.meta.glob("./constants/firebase-config.ts");
5858
const loader = constants["./constants/firebase-config.ts"];
5959
if (loader) {
6060
firebaseConfig = ((await loader()) as { firebaseConfig: FirebaseOptions })

frontend/vite.config.prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ export default {
155155
{
156156
filter: ["src/ts/firebase.ts"],
157157
replace: {
158-
from: `"./constants/firebase-config"`,
159-
to: `"./constants/firebase-config-live"`,
158+
from: `"./constants/firebase-config.ts"`,
159+
to: `"./constants/firebase-config-live.ts"`,
160160
},
161161
},
162162
{

0 commit comments

Comments
 (0)