-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
(deploy/netlify) included_files
in netlify.toml doesn't seem effective
#909
Comments
I looked into this and it is a relative path issue. Updating the path to I think we have a few options for a solution:
I have also noticed that netlify cli seems to use the monorepo root as the base path when running from the cookies example folder. I worked around it by adding the monorepo relative path in the netlify.toml:
|
Solution 3 sounds good to me. Would you be able to open a PR? |
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
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
How to reproduce: deploy
08_cookies
example to NetlifyThe error:
The text was updated successfully, but these errors were encountered: