process . chdir ( __dirname ) ; if ( ! process . env . NODE_ENV ) { const region = process . env . VERCEL_REGION || process . env . NOW_REGION ; process . env . NODE_ENV = region === 'dev1' ? 'development' : 'production' ; } import { Server } from 'http' ; import { Bridge } from './now__bridge' ; const page = require ( __LAUNCHER_PAGE_PATH__ ) ; const server = new Server ( page . render || page . default || page ) ; const bridge = new Bridge ( server ) ; bridge . listen ( ) ; exports . launcher = bridge . launcher ;