You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am trying to find a way to run some actions before our app starts. For context, we have a blitzjs app that has the standard blitz-client.tsblitz-server.ts files.
And we run it with blitz startblitz dev. So far, like in the tutorial and docs.
But, we have the need now of running some initialisations when the server starts, what is the best way to achieve this? Custom server? Would I miss the plugins functionality that setupBlitzServer gives if I go down this route?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I am trying to find a way to run some actions before our app starts. For context, we have a blitzjs app that has the standard
blitz-client.ts
blitz-server.ts
files.And we run it with
blitz start
blitz dev
. So far, like in the tutorial and docs.But, we have the need now of running some initialisations when the server starts, what is the best way to achieve this? Custom server? Would I miss the plugins functionality that
setupBlitzServer
gives if I go down this route?Beta Was this translation helpful? Give feedback.
All reactions