diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d5e01dd..3d60b37 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,19 @@ env: TURBO_TOKEN: this-is-not-a-secret TURBO_TEAM: myself + + jobs: + can_build: + if: github.ref != 'refs/heads/main' || github.ref != 'refs/heads/master' + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: wyvox/action@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - run: pnpm build + DeployProduction: name: "Deploy: Production" if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' diff --git a/config/fastboot.js b/config/fastboot.js new file mode 100644 index 0000000..586e382 --- /dev/null +++ b/config/fastboot.js @@ -0,0 +1,24 @@ +/* global ReadableStream, WritableStream, TransformStream */ +module.exports = function () { + return { + buildSandboxGlobals(defaultGlobals) { + return Object.assign({}, defaultGlobals, { + fetch, + AbortController, + ReadableStream: + typeof ReadableStream !== 'undefined' + ? ReadableStream + : require('node:stream/web').ReadableStream, + WritableStream: + typeof WritableStream !== 'undefined' + ? WritableStream + : require('node:stream/web').WritableStream, + TransformStream: + typeof TransformStream !== 'undefined' + ? TransformStream + : require('node:stream/web').TransformStream, + Headers: typeof Headers !== 'undefined' ? Headers : undefined, + }); + }, + }; +}; diff --git a/package.json b/package.json index 0addf0b..7a269cf 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "test:ember": "ember test", "deploy": "ember build -e production && cp config/_redirects dist/" }, + "fastbootDependencies": ["crypto"], "devDependencies": { "@babel/core": "^7.23.6", "@ember/optional-features": "^2.0.0",