mirror of
https://github.com/BillyOutlast/posthog.com.git
synced 2026-02-04 03:11:21 +01:00
* Minor landing page fixes * add get started modal to home page * dont link contributors githubs * make quote less wide * style + alignment for open source section * fix tinkoff logo * fix all ctas, standardize component Co-authored-by: Cory Watilo <corywatilo@gmail.com>
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
const path = require('path')
|
|
|
|
exports.createPages = require('./gatsby/createPages')
|
|
exports.onCreateNode = require('./gatsby/onCreateNode')
|
|
|
|
// Implement the Gatsby API “onCreatePage”. This is
|
|
// called after every page is created.
|
|
exports.onCreatePage = async ({ page, actions }) => {
|
|
const { createPage } = actions
|
|
// Only update the `/app` page.
|
|
if (page.path.match(/^\/plugins/)) {
|
|
// page.matchPath is a special key that's used for matching pages
|
|
// with corresponding routes only on the client.
|
|
page.matchPath = '/plugins/*'
|
|
// Update the page.
|
|
createPage(page)
|
|
}
|
|
}
|
|
|
|
exports.onCreateWebpackConfig = ({ stage, actions }) => {
|
|
actions.setWebpackConfig({
|
|
resolve: {
|
|
extensions: ['.js', '.ts', '.tsx'],
|
|
alias: {
|
|
'~': path.resolve(__dirname, 'src'),
|
|
lib: path.resolve(__dirname, 'src', 'lib'),
|
|
types: path.resolve(__dirname, 'src', 'types'),
|
|
images: path.resolve(__dirname, 'src', 'images'),
|
|
components: path.resolve(__dirname, 'src', 'components'),
|
|
logic: path.resolve(__dirname, 'src', 'logic'),
|
|
},
|
|
},
|
|
})
|
|
}
|