Skip to content

Fastedge configuration

Repeat builds or more complex build configuration is easiest using config files.

fastedge-init

This is a command line tool that allows you to create config file starter templates for your builds.

The simplest of these is just a configuration file that defines the <input-path> and <output-path> for creating a wasm.

Using the command line interface:

Terminal window
npx fastedge-init

This will present you with a few menu options:

Description of image

Running this init command will create a .fastedge folder at the top level of your project including the created build-config.js file.

.fastegde/build-config.js
const config = {
type: 'http',
input: 'src/index.js',
output: '.fastedge/dist/main.wasm',
};
const serverConfig = {
type: 'http',
};
export { config, serverConfig };