Skip to content

Commit

Permalink
fix: env variable is not used in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Apr 22, 2023
1 parent e43416d commit 87f1a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DirectusQueryParams } from './runtime/types'
export interface ModuleOptions {
/**
* Directus API URL
* @default process.env.DIRECTUS_URL
* @default process.env.NUXT_DIRECTUS_URL
* @type string
*/
url?: string;
Expand Down Expand Up @@ -38,7 +38,7 @@ export default defineNuxtModule<ModuleOptions>({
}
},
defaults: {
url: process.env.DIRECTUS_URL,
url: process.env.NUXT_DIRECTUS_URL,
autoFetch: true
},
setup (options, nuxt) {
Expand Down

0 comments on commit 87f1a5e

Please sign in to comment.