Skip to content

Commit

Permalink
Buildando projeto e batendo no My Json Server quando em produção
Browse files Browse the repository at this point in the history
  • Loading branch information
joseribeiroejrs committed Jul 10, 2021
1 parent 5b3fc04 commit 9821b66
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions dist/bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions dist/bundle.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet"><title>WatchMe</title></head><body><div id="root"></div><script src="bundle.js"></script></body></html>
6 changes: 5 additions & 1 deletion src/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import axios from 'axios';


const isDevelopment = process.env.NODE_ENV !== 'production';
const baseURL = isDevelopment ? 'http://localhost:3333' : 'https://my-json-server.typicode.com/joseribeiroejrs/movie-list-ignite'

export const api = axios.create({
baseURL: 'http://localhost:3333',
baseURL,
});

0 comments on commit 9821b66

Please sign in to comment.