cre-chatbot-rag / staticwebapp.config.json
tony-42069's picture
Add deployment and container configurations
836ede6
raw
history blame contribute delete
798 Bytes
{
"routes": [
{
"route": "/api/*",
"serve": "/api",
"methods": ["GET", "POST"]
},
{
"route": "/*",
"serve": "/",
"statusCode": 200
}
],
"navigationFallback": {
"rewrite": "/index.html"
},
"platform": {
"apiRuntime": "python:3.11"
},
"globalHeaders": {
"Content-Security-Policy": "default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;",
"Access-Control-Allow-Origin": "*"
},
"buildProperties": {
"appLocation": "/frontend",
"apiLocation": "/api",
"outputLocation": "",
"apiBuildCommand": "pip install -r requirements.txt",
"appBuildCommand": "pip install -r requirements.txt"
}
}