Skip to content

wasmer-examples/hugo-wasmer-starter

Repository files navigation

This is a Hugo project bootstrapped with hugo new site project-name.

Usage

You can run the Hugo site with:

hugo server

This will start a high-performance server that will watch your files.

You can run the Hugo website using Wasmer (check out the install guide):

hugo
wasmer run . --net -- --port=1313

Open http://localhost:1313 with your browser to see the result.

Deploy Wasmer Edge

The easiest way to deploy your Hugo static site is to use the Wasmer Edge.

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

First, you'll need to run hugo to build the assets, and then, to deploy to Wasmer Edge:

wasmer deploy