Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Upbound API configuration
UPBOUND_API_URL=https://api.upbound.io
UPBOUND_BASE_DOMAIN=upbound.io

# GitHub Packages authentication
GITHUB_TOKEN=

# LaunchDarkly feature flags
LAUNCHDARKLY_CLIENT_ID=
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ cache-verify=true
legacy-peer-deps=true
fetch-retry-mintimeout=20000
fetch-retry-maxtimeout=120000

# GitHub Packages registry for @upbound packages
@upbound:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
45 changes: 45 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ const config = {
id: "cookieyes",
},
],
customFields: {
apiUrl: process.env.UPBOUND_API_URL || 'https://api.upbound.io',
baseDomain: process.env.UPBOUND_BASE_DOMAIN || 'upbound.io',
launchDarklyClientId: process.env.LAUNCHDARKLY_CLIENT_ID || '',
},
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('esbuild-loader'),
options: {
loader: 'tsx',
target: isServer ? 'node12' : 'es2017',
},
}),
},
i18n: {
defaultLocale: "en",
locales: ["en"],
Expand Down Expand Up @@ -63,6 +77,37 @@ const config = {
},
],
"./scripts/plan-plugin.js",
function (context, options) {
return {
name: 'custom-webpack-config',
configureWebpack(config, isServer) {
const webpack = require('webpack');
const path = require('path');
return {
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser.js',
React: 'react',
}),
],
resolve: {
fallback: {
process: require.resolve('process/browser.js'),
},
fullySpecified: false,
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.css'],
mainFiles: ['index'],
},
resolveLoader: {
modules: [
path.resolve(__dirname, 'node_modules'),
'node_modules',
],
},
};
},
};
},
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down
Loading