Skip to content

Commit

Permalink
Add firebase hosting config
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Dec 18, 2023
1 parent 6d6dbd6 commit 6d5b550
Show file tree
Hide file tree
Showing 7 changed files with 10,435 additions and 846 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "mockoon-api-playground"
}
}
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy hosting
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
env:
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}}

steps:
- uses: actions/checkout@v3
- name: Build and deploy
run: |
npm run deploy
4 changes: 2 additions & 2 deletions dist/playground-mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
{
"key": "X-Powered-By",
"value": "Powered by Mockoon"
"value": "Mockoon (https://mockoon.com)"
}
],
"proxyReqHeaders": [
Expand All @@ -85,7 +85,7 @@
"id": "nldz",
"name": "Posts",
"documentation": "",
"value": "[\n {{#repeat 100}}\n {\n \"uuid\": \"{{faker 'string.uuid'}}\"\n \"title\": \"{{faker 'lorem.sentence'}}\",\n \"author\": \"{{faker 'person.fullName'}}\",\n \"date\": \"{{faker 'date.past'}}\",\n \"content\": \"{{faker 'lorem.paragraphs'}}\",\n \"views\": {{faker 'number.int' max=99999}},\n \"isPublished\": {{faker 'datatype.boolean'}}\n }\n {{#unless @last}},{{/unless}}\n {{/repeat}}\n]"
"value": "[\n {{#repeat 100}}\n {\n \"uuid\": \"{{faker 'string.uuid'}}\",\n \"title\": \"{{faker 'lorem.sentence'}}\",\n \"author\": \"{{faker 'person.fullName'}}\",\n \"date\": \"{{faker 'date.past'}}\",\n \"content\": \"{{faker 'lorem.paragraphs' 5 separator=''}}\",\n \"views\": {{faker 'number.int' max=99999}},\n \"isPublished\": {{faker 'datatype.boolean'}}\n }{{#unless @last}},{{/unless}}\n {{/repeat}}\n]"
}
],
"callbacks": []
Expand Down
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"target": "mockoon-api-playground",
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"run": {
"serviceId": "playground",
"region": "us-central1"
}
}
]
}
}
Loading

0 comments on commit 6d5b550

Please sign in to comment.