Skip to content

Commit f859ff0

Browse files
committed
bad-errors-on-vercel
1 parent 1d53010 commit f859ff0

File tree

10 files changed

+4
-27
lines changed

10 files changed

+4
-27
lines changed

api/index.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

api/__init__.py renamed to app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
app = Flask(__name__)
44

5-
from api import routes
5+
from app import routes
File renamed without changes.

api/routes.py renamed to app/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import render_template, request
2-
from api.complexity import get_complexity_analysis
3-
from api import app
2+
from app.complexity import get_complexity_analysis
3+
from app import app
44

55
@app.route('/', methods=['GET', 'POST'])
66
def index():
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"rewrites": [
3-
{ "source": "/(.*)", "destination": "app/index" }
3+
{ "source": "/(.*)", "destination": "run" }
44
]
55
}

0 commit comments

Comments
 (0)