How to deploy to Netlify Link to heading
I’m practicing multicloud deployments and want to host this blog on Netlify.
Create netlify.toml in blog repo on GitLab Link to heading
[build.environment]
DART_SASS_VERSION = "1.105.1"
GO_VERSION = "1.27.2"
HUGO_VERSION = "0.168.0"
NODE_VERSION = "24.21.0"
TZ = "Europe/Oslo"
[build]
publish = "public"
command = """\
curl -sfLO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
tar -C "${HOME}/.local" -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
rm "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
export PATH="${HOME}/.local/dart-sass:${PATH}" && \
git config --global core.quotepath false && \
hugo build --gc --minify --baseURL "${URL}"
"""
Configure Netlify Link to heading
- Create a project by importing from GitLab
- Name the project ps4b→blog URL becomes https://ps4bp.netlify.app