forked from Samagra-Development/workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from Samagra-Anamaya/dev
Merging changes to main
- Loading branch information
Showing
142 changed files
with
81,621 additions
and
7,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and Push Bff Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
|
||
env: | ||
DOCKER_USERNAME: ${{ github.actor }} | ||
DOCKER_IMAGE_NAME: ${{ github.repository }} | ||
DOCKER_REGISTRY: ghcr.io | ||
DOCKER_IMAGE_TAG: ${{ github.ref_name }} | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: lower-repo | ||
shell: pwsh | ||
run: | | ||
"::set-output name=repository::$($env:DOCKER_IMAGE_NAME.ToLowerInvariant())" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ env.DOCKER_REGISTRY }} | ||
username: ${{ env.DOCKER_USERNAME }} | ||
password: ${{ secrets.PAT }} | ||
|
||
- name: Build and Push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
build-args: | | ||
"SERVER_RELEASE_VERSION=${{ github.sha }}" | ||
context: packages/bff/. | ||
push: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
tags: ${{ env.DOCKER_REGISTRY }}/${{ steps.lower-repo.outputs.repository }}-bff:${{env.DOCKER_IMAGE_TAG}} | ||
labels: org.opencontainers.image.source=https://github.com/${{steps.lower-repo.outputs.repository}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
.turbo | ||
node_modules | ||
.idea | ||
.env | ||
/dist | ||
pgdata | ||
.DS_Store | ||
/apps/wrapper/scripts | ||
/packages/bff/dist | ||
|
||
pgdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,51 @@ | ||
// /** @type {import('next').NextConfig} */ | ||
|
||
|
||
// const runtimeCaching = require("next-pwa/cache"); | ||
// const withPWA = require("next-pwa")({ | ||
// dest: "public", | ||
// register: true, | ||
// skipWaiting: true, | ||
// disable: process.env.NODE_ENV === "development", | ||
// runtimeCaching | ||
// }); | ||
|
||
// module.exports = withPWA({ | ||
// reactStrictMode: true, | ||
// }); | ||
|
||
const withPWAInit = require("next-pwa"); | ||
|
||
const isDev = process.env.NODE_ENV !== "production"; | ||
const runtimeCaching = require("next-pwa/cache"); | ||
const withPWA = withPWAInit({ | ||
dest: 'public', | ||
disable: isDev, | ||
skipWaiting: true, | ||
disable: process.env.NODE_ENV === "development", | ||
runtimeCaching, | ||
exclude: [ | ||
// add buildExcludes here | ||
({ asset, compilation }) => { | ||
if ( | ||
asset.name.startsWith("server/") || | ||
asset.name.match(/^((app-|^)build-manifest\.json|react-loadable-manifest\.json)$/) | ||
) { | ||
return true; | ||
} | ||
if (isDev && !asset.name.startsWith("static/runtime/")) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
], | ||
}); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = { | ||
experimental: { | ||
appDir: true, | ||
}, | ||
} | ||
|
||
module.exports = nextConfig | ||
module.exports = withPWA(nextConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c3aabb8
There was a problem hiding this comment.
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:
workflow-wrapper-1 – ./apps/wrapper
workflow-wrapper-1-git-main-anamaya.vercel.app
workflow-wrapper-1.vercel.app
workflow-wrapper-1-anamaya.vercel.app