mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
6a4d36878e
refs https://linear.app/tryghost/issue/ENG-673 This means that the initial load of comments can be cached for everyone. We also improve the timestamp which is used when fetching future comments, instead of using a locally generated timestamp, we use the created_at of the first comment loaded, this drastically improved the likelyhood that the timestamp will be the same, meaning that it will hit the cache. |
||
---|---|---|
.. | ||
src | ||
test | ||
.env | ||
.eslintrc.js | ||
.yarnrc | ||
LICENSE | ||
package.json | ||
playwright.config.ts | ||
postcss.config.cjs | ||
README.md | ||
tailwind.config.js | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |
Comments UI
Comments widget that is embedded at the bottom of posts in Ghost.
Development
Pre-requisites
- Run
yarn
in Ghost monorepo root
Running via Ghost yarn dev
in root folder
You can automatically start the comments dev server when developing Ghost by running Ghost (in root folder) via yarn dev --all
or yarn dev --comments
. This will host the comments JavaScript files, and makes sure that Ghost uses these locally hosted assets instead of the ones from the CDN.
Copyright & License
Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.