ci: docker_tag=ext feat(front): basePath '/lecoffre' + normalize targetOrigin
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m45s
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m45s
This commit is contained in:
parent
e73614a779
commit
612c0cd0ec
@ -58,7 +58,11 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -n "${SSH_AUTH_SOCK:-}" ]; then
|
||||
docker build --target ext --ssh default -t git.4nkweb.com/4nk/lecoffre-front:${{ steps.tag.outputs.TAG }} -f Dockerfile .
|
||||
buildArgs=()
|
||||
if [ -n "${{ secrets.NEXT_PUBLIC_4NK_URL || '' }}" ]; then
|
||||
buildArgs+=(--build-arg NEXT_PUBLIC_4NK_URL="${{ secrets.NEXT_PUBLIC_4NK_URL }}")
|
||||
fi
|
||||
docker build --target ext --ssh default "${buildArgs[@]}" -t git.4nkweb.com/4nk/lecoffre-front:${{ steps.tag.outputs.TAG }} -f Dockerfile .
|
||||
else
|
||||
echo "SSH_AUTH_SOCK non défini: l'agent SSH n'est pas disponible. Assurez-vous de définir secrets.SSH_PRIVATE_KEY."
|
||||
exit 1
|
||||
|
@ -9,6 +9,11 @@
|
||||
- LoginCallback (`index.tsx`) ajusté: suppression de la redirection spéciale `local.4nkweb.com` au profit d'un flux standard basé sur variables d'environnement.
|
||||
|
||||
## v0.1.3
|
||||
## v0.1.4
|
||||
|
||||
- Sous-chemin Next activé: `basePath: '/lecoffre'`.
|
||||
- Normalisation SSR du `targetOrigin` de l’iframe sur l’origine de `NEXT_PUBLIC_4NK_URL`.
|
||||
- CI: build-arg optionnel `NEXT_PUBLIC_4NK_URL` depuis les secrets.
|
||||
|
||||
- Optimisations build Docker:
|
||||
- `.dockerignore` pour réduire le contexte.
|
||||
|
@ -3,6 +3,7 @@
|
||||
const nextConfig = {
|
||||
reactStrictMode: false,
|
||||
output: 'standalone',
|
||||
basePath: '/lecoffre',
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lecoffre-front",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
@ -85,7 +85,14 @@ const MyApp = (({
|
||||
const [isConnected, setIsConnected] = useState(false);
|
||||
const [isReady, setIsReady] = useState(false);
|
||||
|
||||
IframeReference.setTargetOrigin(_4nkUrl);
|
||||
const targetOrigin = (() => {
|
||||
try {
|
||||
return new URL(_4nkUrl).origin;
|
||||
} catch {
|
||||
return _4nkUrl;
|
||||
}
|
||||
})();
|
||||
IframeReference.setTargetOrigin(targetOrigin);
|
||||
|
||||
useEffect(() => {
|
||||
const isAuthenticated = User.getInstance().isAuthenticated();
|
||||
|
Loading…
x
Reference in New Issue
Block a user