Skip to content

Commit

Permalink
changes for deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
viviannnl committed Sep 17, 2023
1 parent 3f8d2f9 commit 51ca268
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
26 changes: 25 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
node_modules
.env
.env

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
23 changes: 0 additions & 23 deletions frontend/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "frontend",
"version": "0.1.0",
"proxy": "http://localhost:5000",
"private": true,
"dependencies": {
"@reduxjs/toolkit": "^1.9.5",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/auth/authService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios'

const API_URL = '/api/users/'
const API_URL = process.env.SERVER_URL + '/api/users/'

// Register user
const register = async (userData) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/goals/goalsService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios'

const API_URL = '/api/goals/'
const API_URL = process.env.SERVER_URL + '/api/goals/'


// submit goals
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/habits/habitsService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios'

const API_URL = '/api/habits/'
const API_URL = process.env.SERVER_URL + '/api/habits/'


// submit habits
Expand Down

0 comments on commit 51ca268

Please sign in to comment.