Update build configuration for Vercel deployment on beta branch
This commit is contained in:
@@ -29,3 +29,5 @@ dist-ssr
|
|||||||
# CMS data & uploads
|
# CMS data & uploads
|
||||||
server/data/
|
server/data/
|
||||||
server/uploads/
|
server/uploads/
|
||||||
|
.vercel
|
||||||
|
.env*
|
||||||
|
|||||||
Binary file not shown.
@@ -12,7 +12,7 @@
|
|||||||
{ "label": "Contact Us", "href": "#contactus", "type": "hash" }
|
{ "label": "Contact Us", "href": "#contactus", "type": "hash" }
|
||||||
],
|
],
|
||||||
"hero": {
|
"hero": {
|
||||||
"video": "/assets/citpl-hero-dubai.mp4",
|
"video": "/assets/citpl-hero.mp4",
|
||||||
"badge": "Chennai & Dubai • Trusted by 100+ Clients",
|
"badge": "Chennai & Dubai • Trusted by 100+ Clients",
|
||||||
"headline": "Infinite Possibilities",
|
"headline": "Infinite Possibilities",
|
||||||
"subheadline": "One Trusted Technology Partner"
|
"subheadline": "One Trusted Technology Partner"
|
||||||
|
|||||||
Binary file not shown.
+2
-1
@@ -6,9 +6,10 @@ import { resolve } from 'path'
|
|||||||
// Prod: https://demo.cavinkare.in/citpl_website/admin.html (base "/citpl_website/")
|
// Prod: https://demo.cavinkare.in/citpl_website/admin.html (base "/citpl_website/")
|
||||||
export default defineConfig((configEnv) => {
|
export default defineConfig((configEnv) => {
|
||||||
const isDev = configEnv.command === 'serve'
|
const isDev = configEnv.command === 'serve'
|
||||||
|
const isVercel = Boolean(process.env.VERCEL)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
base: isDev ? '/' : '/citpl_website/',
|
base: (isDev || isVercel) ? '/' : '/citpl_website/',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|||||||
Reference in New Issue
Block a user