8 Commits

4 changed files with 18 additions and 13 deletions

View File

@@ -59,13 +59,19 @@ jobs:
echo "env_name=Preview" >> $GITHUB_OUTPUT echo "env_name=Preview" >> $GITHUB_OUTPUT
fi fi
- name: Run Cloudflare Wrangler - name: Run Cloudflare Wrangler & Capture URL
uses: cloudflare/wrangler-action@v3 id: wrangler
with: run: |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} # Exécuter wrangler et rediriger la sortie vers un fichier tout en l'affichant (tee)
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} bunx wrangler ${{ steps.target.outputs.wrangler_command }} | tee wrangler.log
command: ${{ steps.target.outputs.wrangler_command }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }} # Extraction de l'URL
if [ "${{ steps.target.outputs.env_name }}" = "Preview" ]; then
PREVIEW_URL=$(grep -o 'https://[^ ]*\.workers\.dev' wrangler.log | head -n 1)
echo "DEPLOY_URL=$PREVIEW_URL" >> $GITHUB_OUTPUT
else
echo "DEPLOY_URL=https://arthurdanjou.fr" >> $GITHUB_OUTPUT
fi
env: env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
@@ -80,7 +86,8 @@ jobs:
title: "Déploiement Portfolio (${{ steps.target.outputs.env_name }})" title: "Déploiement Portfolio (${{ steps.target.outputs.env_name }})"
description: | description: |
Build terminé sur la branche **${{ github.ref_name }}**. Build terminé sur la branche **${{ github.ref_name }}**.
Environnement cible : **${{ steps.target.outputs.env_name }}**. Environnement : **${{ steps.target.outputs.env_name }}**
URL : **${{ steps.wrangler.outputs.DEPLOY_URL }}**
Commit: `${{ github.sha }}` par ${{ github.actor }}. Commit: `${{ github.sha }}` par ${{ github.actor }}.
nofail: false nofail: false
nodetail: false nodetail: false

View File

@@ -10,7 +10,7 @@ useSeoMeta({
<main class="min-h-[60vh] flex flex-col items-center justify-center p-4"> <main class="min-h-[60vh] flex flex-col items-center justify-center p-4">
<div class="max-w-2xl text-center space-y-8"> <div class="max-w-2xl text-center space-y-8">
<h1 class="p-2 text-4xl md:text-6xl font-bold bg-linear-to-r from-inverted/40 to-inverted/75 to-70% bg-clip-text text-transparent duration-200 my-12 md:my-24"> <h1 class="p-2 text-4xl md:text-6xl font-bold bg-linear-to-r from-inverted/40 to-inverted/75 to-70% bg-clip-text text-transparent duration-200 my-12 md:my-24">
Coming Soon... Coming Soon... Very Soon...
</h1> </h1>
<p class="text-lg md:text-xl text-neutral-600 dark:text-neutral-400 leading-relaxed"> <p class="text-lg md:text-xl text-neutral-600 dark:text-neutral-400 leading-relaxed">

View File

@@ -117,6 +117,7 @@ export default defineNuxtConfig({
nitro: { nitro: {
preset: 'cloudflare_module', preset: 'cloudflare_module',
experimental: { experimental: {
openAPI: true openAPI: true
}, },

View File

@@ -1,10 +1,7 @@
/* eslint-disable */ /* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 8c48032b4b2801cdbac6e8dbc9d26203) // Generated by Wrangler by running `wrangler types` (hash: 373e9a05bf207b93549ab53665d07e4b)
// Runtime types generated with workerd@1.20251210.0 2025-12-13 nodejs_compat // Runtime types generated with workerd@1.20251210.0 2025-12-13 nodejs_compat
declare namespace Cloudflare { declare namespace Cloudflare {
interface GlobalProps {
mainModule: typeof import("./.output/server/index");
}
interface Env { interface Env {
CACHE: KVNamespace; CACHE: KVNamespace;
STUDIO_GITHUB_CLIENT_ID: string; STUDIO_GITHUB_CLIENT_ID: string;