This guide probably saved me hours of configuration hell. Thank you! I had a relative path issue with the default setup:
WARN No pages directory found in [path to project]/functions. Using the default built-in page..
Took me a while to figure out it was because I'd tweaked the render function to enable dev in the config object when it's set in the node ENV (config.dev = process.env.NODE_ENV !== 'production'). If you want to be able to run the code in dev mode for debugging purposes just add srcDir: '../src' to the config object.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This guide probably saved me hours of configuration hell. Thank you! I had a relative path issue with the default setup:
WARN No pages directory found in [path to project]/functions. Using the default built-in page.
.Took me a while to figure out it was because I'd tweaked the render function to enable dev in the
config
object when it's set in the node ENV (config.dev = process.env.NODE_ENV !== 'production'
). If you want to be able to run the code in dev mode for debugging purposes just addsrcDir: '../src'
to the config object.