1 minute to read
previewSite
Before You Begin
-
If you use WSL to execute this task, you must use the IP V6 address of localhost
[::1]
to access the server.127.0.0.1
orlocalhost
will not work. -
Most site themes don’t need the static site server for general content, you can just preview the site by opening from the file system in your browser. However, some JavaScript features will not work because of CORS restrictions.
About This Task
When you use a build in a static site generator through generateSite
, you sometimes need a real locally running static server to preview the results. This task will start a jetty for your generated site.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.