Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ const FONT_VARIANT_TO_FONT_OPTIONS: Record<FontVariant, { fontWeight: FontWeight
},
}

const FONT_ASSETS_BASE_PATH = 'https://assets.standardnotes.com/fonts'
const FONT_ASSETS_BASE_PATH =
process.env.NODE_ENV === 'development'
? 'http://localhost:3001/assets/fonts'
: 'https://assets.standardnotes.com/fonts'

const FALLBACK_FONT_SOURCE = '/noto-sans/NotoSans-Regular.ttf'

export const FALLBACK_FONT_FAMILY = FontFamily.Helvetica
Expand Down
10 changes: 10 additions & 0 deletions packages/web/web.webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ module.exports = (env, argv) => {
devMiddleware: {
writeToDisk: argv.writeToDisk,
},
proxy: {
'/assets': {
target: 'https://assets.standardnotes.com',
changeOrigin: true,
secure: false,
pathRewrite: {
'^/assets': '',
},
},
},
},
})
}
Loading