pinafore/src/routes/_utils/urlRegex.js

8 wiersze
213 B
JavaScript
Czysty Zwykły widok Historia

import { thunk } from './thunk'
2018-02-28 07:38:33 +00:00
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
})