#Discord.js and nextjs

13 messages · Page 1 of 1 (latest)

round wrenBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

urban turtle
#

How do you start your bot regularly (with which command)?

#

so if you enter in your console node . the bot starts?

urban turtle
#

@dry gazelle ?

austere pond
#

u cant

#

unless u use a custom nextjs server

#

but that will remove some of the dynamic and caching features

urban turtle
#

you can do this by adding it to your script like this: (see attached).

Like that it will be automatically started, when the dev script (in this case) starts. Of course you can also add it to your start script, so it only starts when next js starts

austere pond
#

also him not replying to my answer makes this even more worse than it already is 😭

#

i literally replied 1 min later

urban turtle