mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Try different port
This commit is contained in:
parent
df18033b5d
commit
7c10c0a704
1 changed files with 7 additions and 2 deletions
|
|
@ -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) )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue