diff --git a/scripts/scan-new-apps.js b/scripts/scan-new-apps.js index 209d7a5..61746fe 100644 --- a/scripts/scan-new-apps.js +++ b/scripts/scan-new-apps.js @@ -3,18 +3,23 @@ import axios from 'axios' import viteConfig from '~/vite.config.mjs' +const port = 1337 + ;(async () => { // await scanNewAppsAsBrowser() // http://localhost:3000/ const server = await createServer({ ...viteConfig, + port }) + console.log( 'server', server ) + await server.listen(); - console.log('Server listening on http://localhost:3000/') + console.log(`Server listening on http://localhost:${ port }/`) - const { data } = await axios.get('http://localhost:3000/') + const { data } = await axios.get(`http://localhost:${ port }/`) console.log( data.slice(0, 100) )