Ah β well thatβs what happens when I donβt read the item properly (or I do at like 4am) ![]()
But, I did want to try out that scenario and turn it into a Cookbook, so this was a good way of making be try it out.
Two things:
-
Can you share the repo if public β or at least the code for the sdl and services and helpers?
-
You can test a local netlify build locally
Just
- install the netlify cli
npm install netlify-cli -g
setup authorization etc and then
-
netlify linkto connect to your site -
netlify build
Note: not all netlify cli command work with RedwoodJS β¦ for example, the netlify dev does not (yet).
It will then build just like it will when deploying β¦ including the plugins, etc.
β Building "api"...
β Building "web"...
β¨ Done in 15.44s.
(build.command completed in 15.6s)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 2. onPostBuild command from @netlify/plugin-functions-core β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Packaging Functions from api/dist/functions directory:
- graphql.js
- hello.js
(@netlify/plugin-functions-core onPostBuild completed in 22.1s)
βββββββββββββββββββββββββββββββ
β Netlify Build Complete β
βββββββββββββββββββββββββββββββ
Which is a nice way to test w/out deploying.
If youβre able to share some of that code, maybe we can sort things out.
Cheers!