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
Build and deploy issues with Netlify #12037
Comments
I'm able to build and deploy using the commands below. Does this work on your end? mkdir test-app && cd test-app
ntl init
pnpm create svelte . && pnpm i
ntl build
NETLIFY=1 ntl deploy
|
Yes, adapter auto isn't picking up the Netlify env from my settings, however that isn't the only issue I'm running into. This works on a base site, but on my private site I am getting a 404 if I don't prerender all the routes. This may be a completely separate issue, but I am at my wits end trying to debug it. I even went back to a clean branch I know deployed before and it still 404s. |
I resolved this issue. Turns out Netlify's UI was not configuring the site correctly for the workspace. It was putting my serverless functions inside my package like it was at the root, prefixing the directories twice. By removing the old version of |
Describe the bug
Even when creating a new
create svelte
app, I am unable to deploy to Netlify unless I use adapter-static. I have triedadapter-auto
,adapter-netlify
, and can only getadapter-static
to actually build and deploy. I get the errorno build directory has been found
when runningntl build
and thenntl deploy
with the CLI. I can confirm, it is not creating a build directory, but I'm unsure why. Just runningpnpm build
andpnpm preview
works.I'm unsure if this is an
adapter-netlify
issue or if it is something else.Reproduction
Cannot reproduce this because you need an access token for Netlify login. Locally if you have a Netlify account, you can install the cli with
npm i -g netlify-cli
, then runntl login
, thenntl init
to create the site, thenntl build
, thenntl deploy
.Logs
[build]
publish = "/packages/testbuild"
base = "/packages/test"
command = "pnpm build"
[functions]
directory="functions"
System Info
The text was updated successfully, but these errors were encountered: