Back to templates

Docusaurus 2 Starter

Docusaurus site deployed to Wasmer Edge.
Docusaurus site deployed to Wasmer Edge.
Framework
Docusaurus iconDocusaurus
Language
Javascript
Use cases

This is a Docusaurus 2 project, a modern static website generator.

Usage

Install:

$ yarn

Develop:

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build:

$ yarn build

You can run the Docusaurus example using Wasmer (check out the install guide):

wasmer run wasmer-examples/docusaurus-wasmer-starter --net -- --port=3000

[!TIP] You can also run wasmer run . --net -- --port=3000 in the root of this repo, after running npm run build

Open http://localhost:3000 with your browser to see the docusaurus docs.

Deploy on Wasmer Edge

The easiest way to deploy your Docusaurus app is to use the Wasmer Edge.

Live example: https://wasmer-edge-docusaurus-sample.wasmer.app/

First, you'll need to run yarn build, and then, to deploy to Wasmer Edge:

wasmer deploy

[!NOTE] You will need to have Wasmer installed (check out the docs to install the Wasmer CLI!). You will also need to change the namespace in wasmer.toml to your own namespace and app name in app.yaml to your own app name.

Related templates

Making software universally accessible