mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 22:12:50 +08:00
25 lines
563 B
JavaScript
25 lines
563 B
JavaScript
const withPlugins = require('next-compose-plugins')
|
|
const path = require('path')
|
|
|
|
// Next Config
|
|
const nextConfig = {
|
|
env: {
|
|
SUPABASE_URL: 'http://localhost:8000',
|
|
SUPABASE_KEY: 'examplekey',
|
|
},
|
|
webpack(config, options) {
|
|
config.resolve.alias['~'] = path.join(__dirname, '')
|
|
return config
|
|
},
|
|
}
|
|
|
|
// SASS
|
|
const withSass = require('@zeit/next-sass')
|
|
const withSassConfig = {
|
|
sassLoaderOptions: {
|
|
includePaths: ['./', 'absolute/path/b'],
|
|
},
|
|
}
|
|
|
|
// Export all config
|
|
module.exports = withPlugins([[withSass, withSassConfig]], nextConfig) |