- Notifications
You must be signed in to change notification settings - Fork 426
Description
Describe the bug
I'm trying to deploy a legacy Vue Nuxt 2 SPA via CLI, but for some reason, I'm getting no errors at all why it's not successful. I tried to enable debug logs, but I can't see any detailed errors. It just hangs a bit after [get-build-settings.ts] getBuildSettings for baseDirectory:
and exits.
DEBUG='*' netlify deploy --context deploy-preview --alias "deploy-preview-test" --build --json --site site-id --debug --auth auth_token --message "message" --skip-functions-cache deploy:preAction start +0ms deploy:init start +0ms [project.ts]: detectFrameworks [project.ts]: detectBuildSystem [project.ts]: detectWorkspaces [project.ts]: detectPackageManager [project.ts]: detectFrameworksInPath - undefined ❯ Initial build environment config: my-repo/netlify.toml context: deploy-preview cwd: my-repo featureFlags: [] mode: cli repositoryRoot: my-repo siteId: site-id ❯ UI build settings baseRelDir: true build: command: NODE_ENV=dev npm run build publish: dist ❯ Resolved build environment branch: my-branch buildDir: my-repo configPath: my-repo/netlify.toml context: deploy-preview env: - my list of env vars... ❯ Resolved config build: command: NODE_ENV=dev npm run build commandOrigin: ui publish: my-repo/dist publishOrigin: ui headers: - for: /* values: Access-Control-Allow-Origin: https://my-site.com headersOrigin: config plugins: - inputs: {} origin: config package: /netlify/plugins/my-custom-plugin redirects: - from: /* status: 200 to: /index.html redirectsOrigin: config netlify:init end +0ms deploy:preAction end +0ms [project.ts]: getBuildSettings [project.ts]: detectFrameworks [get-build-settings.ts] getBuildSettings for baseDirectory:
I'm trying to prepare a reproducible repository, but in the meantime, I'd like some input on how to proceed since I have no idea what the error could be. The deployment works if I do it on the web UI, but not via the CLI. We would like to switch to a CLI-based deployment flow via CLI and GitHub Actions. I have two of these legacy Nuxt 2 projects, and I can deploy the other successfully via the CLI, but not this one. The configuration is basically is the same. The other one doesn't have the netlify.toml
file in the root, but if I delete that one, it will still not deploy.
Steps to reproduce
Configuration
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "https://mysite.com"
[[plugins]]
package = "/netlify/plugins/my-plugin"
Environment
(nuxt2 with vue2)
System:
OS: macOS 15.3.2
CPU: (8) arm64 Apple M1 Pro
Memory: 264.89 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.1/bin/npm
npmGlobalPackages:
netlify-cli: 20.1.1