Pinafore-Web-Client-Frontend/src/routes/_utils/urlRegex.js

8 lines
216 B
JavaScript

import { thunk } from './thunk.js'
export const urlRegex = thunk(() => {
// this is provided at build time to avoid having a lot of runtime code just to build
// a static regex
return process.env.URL_REGEX
})