Skip to content

Custom build step with @now/python? #4055

Locked Answered by styfle
simonw asked this question in General
Discussion options

You must be logged in to vote

Hi @simonw

You can run configure a Build Command and Output Directory using Project Settings. All the files in the Output Directory are considered static files and served with the correct mime type.

If you have a static site generator written in javascript, you can add a package.json to the root like so:

{
  "private": true,
  "scripts": {
    "build": "invoke your ssg cli here"
  }
}

This assumes the SSG will write the output to the public directory.

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mcsdevv
Comment options

You must be logged in to vote
3 replies
@styfle
Comment options

@simonw
Comment options

@styfle
Comment options

Comment options

You must be logged in to vote
2 replies
@simonw
Comment options

@simonw
Comment options

Comment options

You must be logged in to vote
1 reply
@simonw
Comment options

Comment options

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