Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Oct 6, 2023
1 parent cd79330 commit b3a0368
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

@app.route("/")
def home():
return redirect('http://localhost:5173') if request.remote_addr in ('0.0.0.0', '127.0.0.1', 'localhost', '172.18.0.1') else 'Welcome to DocsGPT Backend!'
if request.remote_addr in ('0.0.0.0', '127.0.0.1', 'localhost', '172.18.0.1'):
return redirect('http://localhost:5173')
else:
return 'Welcome to DocsGPT Backend!'

@app.after_request
def after_request(response):
Expand Down

2 comments on commit b3a0368

@vercel
Copy link

@vercel vercel bot commented on b3a0368 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-arc53.vercel.app
docs-gpt-brown.vercel.app
docs-gpt-git-main-arc53.vercel.app

@vercel
Copy link

@vercel vercel bot commented on b3a0368 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt-arc53.vercel.app
nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt.vercel.app
docs.docsgpt.co.uk

Please sign in to comment.