Skip to content

Deploy serverless functions without a static site #4000

Locked Answered by paulogdm
tafelito asked this question in General
Discussion options

You must be logged in to vote

This is the default behavior of Zero Config. You have a few choices:

  • Move "package.json" inside the api/ folder.
  • Do a "no-op" in your build command: mkdir public.
  • Use a single index.html and set a build command like mkdir public && mv index.html public/

Let us know how it goes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulogdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants