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

Check for source vs publish path to not be same location #7

Closed
talves opened this issue Jan 18, 2018 · 0 comments
Closed

Check for source vs publish path to not be same location #7

talves opened this issue Jan 18, 2018 · 0 comments

Comments

@talves
Copy link
Contributor

talves commented Jan 18, 2018

Before I start, promise not to laugh (too hard).

Issue

  1. Copied the example hello.js into the functions folder
  2. Made a scripts command in package.json called start : "start": "netlify-lambda serve functions"
  3. netlify.toml has functions = "functions" under the build

When running the yarn start command, the build picks up the source and start overwriting with the bundle. It watches and builds again, causing an infinite loop.

Expected behavior

Would be great to get a message "source and publish folder should be in different locations"

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

No branches or pull requests

1 participant