Skip to content

Commit

Permalink
fix: local dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
yamcodes committed Mar 30, 2024
1 parent 577d4e8 commit 11f139f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const registerRoutes = (fastify: FastifyInstance) => {

fastify.get('*', (_req, res) => {
void res.send({
hello: 'world',
hello: 'world!',
randomName: faker.person.firstName(),
iLikeTurtles: iLikeTurtles(),
nice: 69,
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export const App = () => {
<pre>{JSON.stringify(iLikeTurtles())}</pre>
</div>
<div style={{ textAlign: 'left' }}>
<p style={{ fontWeight: 'bold' }}>Source code</p>
<p style={{ fontWeight: 'bold' }}>GitHub</p>
<a
style={{ color: 'lightblue' }}
href="https://github.com/yamcodes/turborepo-firebase-starter/tree/main/apps/web"
href="https://github.com/yamcodes/turborepo-firebase-starter"
>
https://github.com/yamcodes/turborepo-firebase-starter/tree/main/apps/web
https://github.com/yamcodes/turborepo-firebase-starter
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
port: 3000,
proxy: {
'/api': {
target: 'http://127.0.0.1:5000',
target: 'http://localhost:3002',
changeOrigin: true,
},
},
Expand Down
5 changes: 1 addition & 4 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@
]
},
"emulators": {
"ui": {
"enabled": true
},
"functions": {
"port": 3001
},
"hosting": {
"enabled": true,
"port": 3000
"port": 3002
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"type": "module",
"scripts": {
"start": "turbo run dev emulators",
"dev": "turbo run dev",
"emulate": "turbo run build && firebase emulators:start",
"dev": "turbo run build && turbo run root:emulate dev",
"clean": "turbo run root:clean clean",
"build": "turbo run build",
"deploy": "turbo run deploy",
"lint": "pnpm format:check && turbo run lint",
"lint:fix": "pnpm format && turbo run lint -- --fix",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
"root:clean": "rimraf node_modules"
"root:clean": "rimraf node_modules",
"root:emulate": "firebase emulators:start"
},
"devDependencies": {
"eslint-config-custom": "workspace:*",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
},
"//#root:clean": {
"cache": false
},
"//#root:emulate": {
"cache": false,
"persistent": true
}
}
}

0 comments on commit 11f139f

Please sign in to comment.