-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nx-cloudflare] Publish command not working for a fresh project #38
Comments
Thank you! I'll check this one in the evening. |
Yes, it is one of the supported arguments. export interface DeployExecutorSchema {
name: string;
noBundle: boolean;
env: string;
outdir: string;
compatibilityDate: string;
compatibilityFlags: string[];
latest: boolean;
assets: string;
site: string;
siteInclude: string[];
siteExclude: string[];
var: string[];
define: string[];
triggers: string[];
routes: string[];
tsconfig: string;
minify: boolean;
nodeCompat: boolean;
dryRun: boolean;
keepVars: boolean;
} |
I understand the problem.
"executor": "@naxodev/nx-cloudflare:deploy" is the same as "executor": "@naxodev/nx-cloudflare:publish" however, we are generating the applications with deploy as the command name, which is causing the confussion "deploy": {
"executor": "@naxodev/nx-cloudflare:deploy"
} so the options here are either change the docs to use |
Since |
@NachoVazquez Thanks for the update, I tried this command:
So I think it will work after setting the CLOUDFLARE_API_KEY. I'll check with API_KEY and will inform you here. |
@NachoVazquez the deploy command also seems working but it return the below warning:
I think maybe a bit more information and guide or a "how to deploy" section in README is also useful. But I'm new in CloudFlare so I guess by some research I can do it. |
You need to set the Cloudflare API key in your env variables. I might make a note on the docs. However, this is needed for any Cloudflare project beyond this plugin. |
Current Behavior
When I run my project through the
publish
command I'm getting this error in my terminal:Expected Behavior
It's just a helloworld application based on Hono. Do I missed anything in my
wrangler.toml
file? What should I do to fix this and deploy and publish my worker? Maybe a more clear error message can be helpful here.GitHub Repo
No response
Steps to Reproduce
I can run my project sucessfully but I'm getting this error on
publish
:Nx Report
Failure Logs
No response
Operating System
Additional Information
I'm using vscode devContainer with a Debian based linux in a MacOs host machine.
The text was updated successfully, but these errors were encountered: