Skip to content

Commit

Permalink
fix(chore): missing Directus URL in .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed May 27, 2022
1 parent 01f25b5 commit 02c6bfe
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,9 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.options.publicRuntimeConfig.directus,
{
url: options.url,
<<<<<<< Updated upstream
}
);
if (!nuxt.options.publicRuntimeConfig.directus.url) {
throw new Error("Missing `DIRECTUS_URL` in `.env`");
}
=======
token: options.token,
}
);
>>>>>>> Stashed changes


const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
nuxt.options.build.transpile.push(runtimeDir);
Expand Down

0 comments on commit 02c6bfe

Please sign in to comment.