Skip to content

Commit

Permalink
Merge pull request #184 from Sandros94/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Aug 12, 2023
2 parents 9d961eb + 0632a48 commit 945f3e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/2.options.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {

- No default - **Required**

The url to which requests are made to.
The url to which requests are made to. It is possible to set/change it at runtime via `NUXT_PUBLIC_DIRECTUS_URL` env variable.

## `autoFetch`

Expand Down
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DirectusQueryParams } from './runtime/types'
export interface ModuleOptions {
/**
* Directus API URL
* @default process.env.NUXT_DIRECTUS_URL
* @default process.env.NUXT_PUBLIC_DIRECTUS_URL
* @type string
*/
url?: string;
Expand Down Expand Up @@ -100,7 +100,7 @@ export default defineNuxtModule<ModuleOptions>({
}
},
defaults: {
url: process.env.NUXT_DIRECTUS_URL,
url: process.env.NUXT_PUBLIC_DIRECTUS_URL,
autoFetch: true,
autoRefresh: false,
devtools: false,
Expand Down

1 comment on commit 945f3e3

@vercel
Copy link

@vercel vercel bot commented on 945f3e3 Aug 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.