-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: per;fix: invite user un refresh;perf: loginout (#3566)
* perf: loginout * fix: invite user un refresh * fix: per * fix: dockerfile * perf: docker file
- Loading branch information
Showing
5 changed files
with
41 additions
and
36 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 |
---|---|---|
|
@@ -51,6 +51,23 @@ jobs: | |
--cache-to=type=local,dest=/tmp/.buildx-cache \ | ||
-t ${DOCKER_REPO_TAGGED} \ | ||
. | ||
# Add write md step after build | ||
- name: Write md | ||
run: | | ||
echo "# 🤖 Generated by deploy action" > report.md | ||
echo "📦 Preview Image: \`${DOCKER_REPO_TAGGED}\`" >> report.md | ||
cat report.md | ||
- name: Gh Rebot for Sealos | ||
uses: labring/[email protected] | ||
if: ${{ (github.event_name == 'pull_request_target') }} | ||
with: | ||
version: v0.0.6 | ||
env: | ||
GH_TOKEN: '${{ secrets.GH_PAT }}' | ||
SEALOS_TYPE: 'pr_comment' | ||
SEALOS_FILENAME: 'report.md' | ||
SEALOS_REPLACE_TAG: 'DEFAULT_REPLACE_DEPLOY' | ||
|
||
helm-check: | ||
runs-on: ubuntu-20.04 | ||
|
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
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
16 changes: 5 additions & 11 deletions
16
projects/app/src/pages/api/support/user/account/loginout.ts
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,15 +1,9 @@ | ||
import type { NextApiRequest, NextApiResponse } from 'next'; | ||
import { jsonRes } from '@fastgpt/service/common/response'; | ||
import { clearCookie } from '@fastgpt/service/support/permission/controller'; | ||
import { NextAPI } from '@/service/middleware/entry'; | ||
|
||
export default async function handler(req: NextApiRequest, res: NextApiResponse<any>) { | ||
try { | ||
clearCookie(res); | ||
jsonRes(res); | ||
} catch (err) { | ||
jsonRes(res, { | ||
code: 500, | ||
error: err | ||
}); | ||
} | ||
async function handler(req: NextApiRequest, res: NextApiResponse<any>) { | ||
clearCookie(res); | ||
} | ||
|
||
export default NextAPI(handler); |