We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98f76a commit ddabb66Copy full SHA for ddabb66
packages/@vue/cli-service/lib/commands/serve.js
@@ -345,10 +345,13 @@ function addDevClientToEntry (config, devClient) {
345
346
// https://stackoverflow.com/a/20012536
347
function checkInContainer () {
348
+ if ('CODESANDBOX_SSE' in process.env) {
349
+ return true
350
+ }
351
const fs = require('fs')
352
if (fs.existsSync(`/proc/1/cgroup`)) {
353
const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8')
- return /:\/(lxc|docker|kubepods)\//.test(content)
354
+ return /:\/(lxc|docker|kubepods(\.slice)?)\//.test(content)
355
}
356
357
0 commit comments