Skip to content

Instantly share code, notes, and snippets.

Avatar

Lorenzo Rivosecchi lorenzorivosecchi

View GitHub Profile
@lorenzorivosecchi
lorenzorivosecchi / README.md
Last active Jul 30, 2020
How to migrate Passbolt to a new server
View README.md

How to migrate Passbolt to a new server

SSH into you remote server and create a directory.

mkdir ~/passbolt

Go inside the directory

cd ~/passbolt
@lorenzorivosecchi
lorenzorivosecchi / README.md
Last active Aug 21, 2020
NextJS sitemap route
View README.md

NextJS sitemap route

The current setup has been tested with NextJS 9.2.2

Installation

Create a file called sitemap.js into pages/api.
Api Routes are special pages that allow you to export a request handler function that will be run as a serverless function. Using Api Routes avoid you the pain of overriding the default server script, although if have already done it what follows is pretty much the same.

You can’t perform that action at this time.