remove website contents
This commit is contained in:
100
nuxt.config.ts
100
nuxt.config.ts
@@ -18,39 +18,14 @@ export default defineNuxtConfig({
|
||||
]
|
||||
}
|
||||
},
|
||||
// css: [
|
||||
// "vuetify/lib/styles/main.sass", // Core Vuetify styles
|
||||
// "@mdi/font/css/materialdesignicons.min.css", // Material Design Icons
|
||||
// "~/scss/style.scss", // Custom application styles
|
||||
// ],
|
||||
/**
|
||||
* Modules dan plugins
|
||||
* Integrasi dengan ecosystem Nuxt.js
|
||||
*/
|
||||
|
||||
modules: [
|
||||
"@pinia/nuxt", // State management dengan Pinia
|
||||
[
|
||||
"@sidebase/nuxt-auth",
|
||||
{
|
||||
// Add auth module options here as per Sidebase auth guide
|
||||
auth: {
|
||||
isEnabled: true,
|
||||
baseURL:
|
||||
process.env.AUTH_ORIGIN || "http://meninjar.dev.rssa.id:3001",
|
||||
provider: {
|
||||
type: "authjs"
|
||||
// Additional provider options can be added here
|
||||
},
|
||||
globalAppMiddleware: {
|
||||
isEnabled: true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
"@pinia/nuxt",
|
||||
|
||||
],
|
||||
|
||||
plugins: [
|
||||
"~/plugins/vuetify.ts" // Setup Vuetify dengan konfigurasi custom
|
||||
"~/plugins/vuetify.ts"
|
||||
],
|
||||
ssr: false,
|
||||
|
||||
@@ -66,78 +41,27 @@ export default defineNuxtConfig({
|
||||
define: {
|
||||
"process.env.DEBUG": false
|
||||
},
|
||||
server: {
|
||||
allowedHosts: ["meninjar.dev.rssa.id"]
|
||||
}
|
||||
// css: {
|
||||
// preprocessorOptions: {
|
||||
// scss: {
|
||||
// // Global SCSS variables yang dapat diakses di semua komponen
|
||||
// additionalData: `@import "~/scss/variables.scss";`,
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
|
||||
},
|
||||
|
||||
nitro: {
|
||||
serveStatic: true,
|
||||
compressPublicAssets: true, // Kompresi asset untuk faster loading,
|
||||
|
||||
/**
|
||||
* Prerender routes untuk static generation
|
||||
* Halaman yang akan di-generate saat build time
|
||||
*/
|
||||
compressPublicAssets: true,
|
||||
prerender: {
|
||||
// routes: [
|
||||
// '/', // Landing page
|
||||
// '/auth/login', // Halaman login
|
||||
// '/auth/register' // Halaman register
|
||||
// ]
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Route protection untuk production
|
||||
* Middleware untuk security dan rate limiting
|
||||
*/
|
||||
// routeRules: {
|
||||
// '/admin/**': {
|
||||
// headers: { 'X-Robots-Tag': 'noindex' }
|
||||
// // index: false // ❌ Property ini tidak valid - sudah dihapus
|
||||
// }
|
||||
// }
|
||||
|
||||
},
|
||||
runtimeConfig: {
|
||||
authSecret: process.env.AUTH_SECRET,
|
||||
keycloakClientSecret: process.env.KEYCLOAK_CLIENT_SECRET,
|
||||
keycloakClientId: process.env.KEYCLOAK_CLIENT_ID,
|
||||
// Move keycloakIssuer to public to expose on client side
|
||||
public: {
|
||||
authUrl: process.env.AUTH_ORIGIN || "http://meninjar.dev.rssa.id:3000",
|
||||
keycloakIssuer:
|
||||
process.env.KEYCLOAK_ISSUER || "https://auth.rssa.top/realms/sandbox"
|
||||
}
|
||||
},
|
||||
// auth: {
|
||||
// isEnabled: true,
|
||||
// baseURL: process.env.AUTH_ORIGIN,
|
||||
// provider: {
|
||||
// type: "authjs",
|
||||
// },
|
||||
// globalAppMiddleware: {
|
||||
// isEnabled: true,
|
||||
// },
|
||||
// },
|
||||
|
||||
devServerHandlers: [],
|
||||
|
||||
hooks: {},
|
||||
/**
|
||||
* Development tools configuration
|
||||
* Tools untuk meningkatkan developer experience
|
||||
*/
|
||||
|
||||
devtools: {
|
||||
enabled: true, // Enable Nuxt DevTools untuk debugging
|
||||
enabled: true,
|
||||
timeline: {
|
||||
enabled: true // Enable timeline untuk performance monitoring
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user