Skip to content

Commit b7421c5

Browse files
author
priyanshu-kun
committed
fix github cache
1 parent 185b6d8 commit b7421c5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dummy App/client/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dummy App/client/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ yarn-error.log*
77
pnpm-debug.log*
88
lerna-debug.log*
99

10+
.env
1011
node_modules
1112
dist
1213
dist-ssr
@@ -21,4 +22,4 @@ dist-ssr
2122
*.ntvs*
2223
*.njsproj
2324
*.sln
24-
*.sw?
25+
*.sw?

Dummy App/client/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function makeOutput(data) {
2929

3030
async function makeSearch() {
3131
try {
32-
const response = await axios.get(`${import.meta.env.VITE_SERVER_URL}/search`,{
32+
const response = await axios.get(`${import.meta.env.VITE_SERVER_URL_CLOUD}/search`,{
3333
params: {
3434
q: query
3535
}

Dummy App/server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ app.get('/search', async (req, res) => {
4444
}
4545
})
4646

47-
const port = 8081 || process.env.PORT
47+
const port = process.env.PORT || 8081
4848
app.listen(port, () => {
4949
console.log(`App listening on port ${port}`)
5050
})

0 commit comments

Comments
 (0)