Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Astro Intergration instructions not working #353

Open
ontoneio opened this issue Sep 19, 2024 · 0 comments
Open

Astro Intergration instructions not working #353

ontoneio opened this issue Sep 19, 2024 · 0 comments

Comments

@ontoneio
Copy link

Hello,

So in the dotenv-vault documentation, astro integration is instructed to take place through a CLI script like so.

"node -r dotenv/config ./node_modules/.bin/astro build",

However, when integrating this in the same way, errors are encountered with an Astro script it seems.
Returning this error:

> nx run property-tax:build:local

> node -r dotenv/config node_modules/.bin/astro build --config apps/property-tax/astro.config.ts

/workspaces/node_modules/.bin/astro:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at wrapSafe (node:internal/modules/cjs/loader:1378:20)
    at Module._compile (node:internal/modules/cjs/loader:1428:41)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.17.0
Warning: command "node -r dotenv/config node_modules/.bin/astro build --config apps/property-tax/astro.config.ts" exited with non-zero status code

Perhaps the instructions need updating? Or perhaps a new method of loading the library?

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant