Skip to content

Commit

Permalink
missing env
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Mar 2, 2025
1 parent 05a5c4a commit cea8acd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/src/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// src/env.js
import { createRuntimeEnv } from 'next-runtime-env';

// Create environment with server runtime variables
export const env = createRuntimeEnv({
// List the server-only variables you need access to
serverOnly: ['API_KEY'],

// Optional: List any client-side variables
clientSide: ['NEXT_PUBLIC_BACKEND_URL', 'NEXT_PUBLIC_API_URL']
});

0 comments on commit cea8acd

Please sign in to comment.