New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move pages used by a normal user to svelte #570
Conversation
2721cc1
to
940c250
Compare
src/lib/stores.ts
Outdated
message, | ||
type, | ||
fade, | ||
id: Math.round(Math.random() * 10000), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Use UUID or something other that's actually predictably non-clashing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yolo
// https://github.com/axe-me/vite-plugin-node/blob/main/packages/vite-plugin-node/src/server/express.ts | ||
// production's io-server is in server.ts | ||
adapter({ app, server, req, res }) { | ||
if (env.NODE_ENV !== 'production' && !app.get('io')) { | ||
const io = new Server(server.httpServer); | ||
app.set('io', io); | ||
} | ||
app(req, res); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 😍
940c250
to
0cb5e1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Work in progressFinished ™️What has been added?
/retrieve
alerts
(should behave in the same way as the previous, with some changes to the api)socketIOService
and the use of socket-io in development modeAdditional changes
$backend
aliasTODO