mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-31 07:26:54 +00:00
feat: init
This commit is contained in:
4
src/middleware.js
Normal file
4
src/middleware.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export function onRequest(context, next) {
|
||||
context.locals.SITE_URL = `${import.meta.env.SITE ?? ''}${import.meta.env.BASE_URL}`
|
||||
return next()
|
||||
};
|
||||
Reference in New Issue
Block a user