Skip to content

Commit

Permalink
chore(examples): migrate React Data Table example to Vercel (#6994)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan authored Aug 7, 2023
1 parent 3e71a7d commit 1ecf6bf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 27 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/examples-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,30 +405,6 @@ jobs:
CUBE_CLOUD_DEPLOY_AUTH: ${{ secrets.CUBE_CLOUD_DEPLOY_AUTH_REACT_DASHBOARD }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

react-data-table:
runs-on: ubuntu-20.04
timeout-minutes: 30

steps:
- uses: actions/checkout@v3

- uses: pheel/path-watcher-action@v1
id: modified
with:
paths: '.github/workflows/examples-publish.yml,.github/actions/deploy-example.sh,examples/react-data-table/*,examples/react-data-table/**'

- if: steps.modified.outputs.modified
uses: actions/setup-node@v3
with:
node-version: 14.x

- if: steps.modified.outputs.modified
run: .github/actions/deploy-example.sh
env:
EXAMPLE_SLUG: react-data-table
CUBE_CLOUD_DEPLOY_AUTH: ${{ secrets.CUBE_CLOUD_DEPLOY_AUTH_REACT_DATA_TABLE }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

react-muze:
runs-on: ubuntu-20.04
timeout-minutes: 30
Expand Down
3 changes: 0 additions & 3 deletions examples/react-data-table/dashboard-app/.netlify/state.json

This file was deleted.

17 changes: 17 additions & 0 deletions examples/react-data-table/dashboard-app/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains;"
},
{
"key": "Content-Security-Policy",
"value": "connect-src https://identity.cube.dev track.cube.dev graphql.contentful.com https://amber-chameleon.gcp-us-central1.cubecloudapp.dev; font-src 'self' fonts.gstatic.com cdn.jsdelivr.net static.cube.dev data:; style-src 'self' fonts.googleapis.com cdn.jsdelivr.net 'unsafe-inline'; script-src 'self' https://www.datadoghq-browser-agent.com/datadog-logs-v4.js 'sha256-ewaaYbRj0txAYUQlEgkpq5btZDl2R7GUJeRustypP9M=' 'sha256-NNRNlUvekpg7yDPcWeHFgr2SbeZBup4y3/n9L6w472A='; img-src 'self' static.cube.dev data:; object-src 'none'"
}
]
}
]
}

1 comment on commit 1ecf6bf

@vercel
Copy link

@vercel vercel bot commented on 1ecf6bf Aug 7, 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:

examples-react-data-table – ./examples/react-data-table/dashboard-app

react-data-table-demo.cube.dev
examples-react-data-table-cube-dev.vercel.app
examples-react-data-table.vercel.app
examples-react-data-table-git-master-cube-dev.vercel.app

Please sign in to comment.