pinafore/src/routes/_utils/urlRegex.js

8 wiersze
221 B
JavaScript

import { __thunk__ } from './thunk'
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
})