Skip to content

Commit 05af502

Browse files
fix: default nmrXiv endpoint to production outside Vite
Guard access to import.meta.env so importing the compiled package does not throw when Vite environment variables are unavailable. Preserve Vite development endpoint selection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 948cf40 commit 05af502

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/config/nmrxiv/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ interface NmrXivConfig {
55
baseURL: string;
66
}
77

8-
export const nmrXivConfig: NmrXivConfig = import.meta.env.DEV
8+
export const nmrXivConfig: NmrXivConfig = import.meta.env?.DEV
99
? development
1010
: production;

0 commit comments

Comments
 (0)