Skip to content
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

fix: netlify relative fs path #1126

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

rmarscher
Copy link
Contributor

Changes the netlify functions output dir from netlify/functions to netlify-functions.

This is a breaking change for existing netlify projects using dynamic rendering. It requires updating the functions directory for existing projects from the default "netlify/functions" to "netlify-functions".

Edit the netlify.toml [functions] section and set

  directory = "netlify-functions"

In a monorepo, the directory value needs to also include the base path from the root of the monorepo.

Fixes #909

Changes the netlify functions output dir from netlify/functions
to netlify-functions.

This is a breaking change for existing netlify projects
using dynamic rendering. It requires updating netlify.toml `[functions]` section with

```
  directory = "netlify-functions"
```

In a monorepo, this needs to also include the base path from the root of the monorepo.

Fixes dai-shi#909

to the netlify.toml (or to
Copy link

vercel bot commented Jan 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Jan 5, 2025 7:00am

Copy link

codesandbox-ci bot commented Jan 5, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Owner

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dai-shi dai-shi mentioned this pull request Jan 5, 2025
@dai-shi dai-shi merged commit a15317b into dai-shi:main Jan 5, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(deploy/netlify) included_files in netlify.toml doesn't seem effective
2 participants