![hugo-wasmer-starter package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2F57c7a0cc-bef1-4579-9cdb-ffb9f8cff4aa_default_icon%2Fd9d456d55896a852f6c05be9df645e90.png&w=96&q=75)
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):
wasmer run wasmer-examples/hugo-wasmer-starter --net -- --port=1313
[!TIP] You can also run
wasmer run . --net -- --port=1313
in the root of this repo, after runninghugo
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
[!NOTE] You will need to change the namespace in
wasmer.toml
to your own namespace and app name inapp.yaml
to your own app name.