post-deploy fixins
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m46s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m46s
This commit is contained in:
@@ -64,6 +64,10 @@ jobs:
|
||||
|
||||
# --- Frontend Deployment ---
|
||||
- name: Build React Application
|
||||
env:
|
||||
# Pass the Google GenAI API key to the build process.
|
||||
# Vite automatically makes env vars prefixed with VITE_ available in the app.
|
||||
VITE_GOOGLE_GENAI_API_KEY: ${{ secrets.VITE_GOOGLE_GENAI_API_KEY }}
|
||||
run: npm run build # This creates the 'dist' directory with static files.
|
||||
|
||||
- name: Deploy Frontend via Local Copy
|
||||
|
||||
3
index.css
Normal file
3
index.css
Normal file
@@ -0,0 +1,3 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
23
index.html
23
index.html
@@ -3,30 +3,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Grocery Flyer AI Analyzer</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
'brand-primary': '#10B981',
|
||||
'brand-secondary': '#059669',
|
||||
'brand-dark': '#047857',
|
||||
'brand-light': '#ecfdf5',
|
||||
}
|
||||
}
|
||||
},
|
||||
// This is needed to enable the dark: variants
|
||||
darkMode: 'class'
|
||||
}
|
||||
</script>
|
||||
<title>Grocery Flyer AI Analyzer</title>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<!-- The stylesheet will be injected here by Vite during the build process -->
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
@@ -41,7 +25,8 @@
|
||||
</script>
|
||||
<!-- PDF.js Library -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.5.136/pdf.min.mjs" type="module"></script>
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
<!-- We link to the CSS entry point. Vite will process this. -->
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
926
package-lock.json
generated
926
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,6 +19,9 @@
|
||||
"@types/node": "^22.14.0",
|
||||
"@vitejs/plugin-react": "^5.0.0",
|
||||
"typescript": "~5.8.2",
|
||||
"vite": "^6.2.0"
|
||||
"vite": "^6.2.0",
|
||||
"tailwindcss": "^3.4.10",
|
||||
"postcss": "^8.4.40",
|
||||
"autoprefixer": "^10.4.19"
|
||||
}
|
||||
}
|
||||
|
||||
7
postcss.config.js
Normal file
7
postcss.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// postcss.config.js
|
||||
export default {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
||||
22
tailwind.config.js
Normal file
22
tailwind.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
// Configure files to scan for Tailwind classes
|
||||
content: [
|
||||
"./index.html",
|
||||
"./**/*.{js,ts,jsx,tsx}", // Scans all relevant files for classes
|
||||
],
|
||||
// Enable dark mode using a class
|
||||
darkMode: 'class',
|
||||
theme: {
|
||||
extend: {
|
||||
// Move the brand colors from index.html to here
|
||||
colors: {
|
||||
'brand-primary': '#10B981',
|
||||
'brand-secondary': '#059669',
|
||||
'brand-dark': '#047857',
|
||||
'brand-light': '#ecfdf5',
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
Reference in New Issue
Block a user