diff --git a/.github/swa-db-connections/staticwebapp.database.config.json b/.github/swa-db-connections/staticwebapp.database.config.json deleted file mode 100644 index b7056b5..0000000 --- a/.github/swa-db-connections/staticwebapp.database.config.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.1.7/dab.draft.schema.json", - "data-source": { - "database-type": "mssql", - "connection-string": "", - "options": { - "set-session-context": false - } - }, - "runtime": { - "rest": { - "enabled": true, - "path": "/rest", - "request-body-strict": true - }, - "graphql": { - "enabled": true, - "path": "/graphql", - "allow-introspection": true - }, - "host": { - "cors": { - "origins": [], - "allow-credentials": false - }, - "authentication": { - "provider": "StaticWebApps" - }, - "mode": "production" - } - }, - "entities": { - "SalesOrderDetail": { - "source": "dbo.SalesOrderDetail", - "permissions": { - "anonymous": "*" - } - } - } -} \ No newline at end of file diff --git a/swa-db-connections/staticwebapp.database.config.json b/swa-db-connections/staticwebapp.database.config.json index b7056b5..bd32249 100644 --- a/swa-db-connections/staticwebapp.database.config.json +++ b/swa-db-connections/staticwebapp.database.config.json @@ -2,7 +2,7 @@ "$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.1.7/dab.draft.schema.json", "data-source": { "database-type": "mssql", - "connection-string": "", + "connection-string": "@env('DATABASE_CONNECTION_STRING')" "options": { "set-session-context": false }