Next.js Discord

Discord Forum

NextJS docs unclear

Answered
Schweizer Laufhund posted this in #help-forum
Open in Discord
Schweizer LaufhundOP
Current migrating from Vite
Create a [[...slug]] directory in your app directory.
Since in this guide we're aiming first to set up our Next.js as an SPA (Single Page Application), you need your page entrypoint to catch all possible routes of your application. For that, create a new [[...slug]] directory in your app directory.

What is supposed to be the name of the directory? I can't mkdir or cd into a directory called [[...slug]] on linux.
Answered by Clown
The name is supposed to be literally [[...slug]]

On linux, iirc you can just use quotes

$ mkdir "[[...slug]]"
View full answer

2 Replies

The name is supposed to be literally [[...slug]]

On linux, iirc you can just use quotes

$ mkdir "[[...slug]]"
Answer
Schweizer LaufhundOP
Oh alright