-
If I'm using the I'd like to do things like generate static assets to include in the build. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
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 {
"private": true,
"scripts": {
"build": "invoke your ssg cli here"
}
} This assumes the SSG will write the output to the |
Beta Was this translation helpful? Give feedback.
-
Is there a way to specify a custom build command from within the I always prefer having this kind of configuration in source control along with the rest of my code. |
Beta Was this translation helpful? Give feedback.
-
@simonw I just thought of a possible solution for your Datasette project. Today, we detect many static site generators such as Next.js, Jekyll, Hugo, Gatsby, etc. Is there a way we can detect if a project is using Datasette? That way we can automatically populate the Build Command and Output Directory. Perhaps there is a dependency in |
Beta Was this translation helpful? Give feedback.
-
Additionally, if that's not possible, what do you think about a |
Beta Was this translation helpful? Give feedback.
-
I haven't gotten it to work but perhaps this is a solution: https://github.com/almapario/vercel-poetry |
Beta Was this translation helpful? Give feedback.
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:This assumes the SSG will write the output to the
public
directory.