Next.js: Difference between revisions

Line 10: Line 10:
davidl.me {
davidl.me {
   root * /var/www/davidl_me/out
   root * /var/www/davidl_me/out
  @pathWithSlash path_regexp dir ^(.*)/$
  redir @pathWithSlash {re.dir.1}
  try_files {path} {path}.html
   file_server
   file_server
  uri strip_suffix /
  try_files {path} {path}.html
}
}
</pre>
</pre>
* You can also use <code>uri strip_suffix /</code> instead of the redirect.