Skip to content

Commit

Permalink
fix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenderov committed Jan 28, 2023
1 parent 38c5d91 commit 3f02463
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/services/config.js
Expand Up @@ -9,10 +9,9 @@ module.exports = ({ strapi }) => {
},
getCKEditorConfig() {
const appDir = process.cwd();
const isTSProject = fs.existsSync(`${appDir}/dist`);
const jsDir = isTSProject ? `${appDir}/dist` : appDir;

const filename = `${jsDir}/config/ckeditor.txt`;
const filename = `${appDir}/config/ckeditor.txt`;

return fs.existsSync(filename)
? fs.readFileSync(filename)
: 'globalThis.CKEditorConfig = null'
Expand Down

0 comments on commit 3f02463

Please sign in to comment.