Skip to content
Merged
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
6 changes: 6 additions & 0 deletions lib/strategy/ValidateClientConfigStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ ValidateClientConfigStrategy.prototype.process = function (config, callback) {
return newError("Application HREF '" + application.href + "' is not a valid Stormpath Application HREF.");
}

var web = config.web;

if (web.spa && web.spa.enabled && web.spa.view === null) {
return newError("SPA mode is enabled but web.spa.view isn't set. This needs to be the absolute path to the file that you want to serve.");
}

callback(null, config);
};

Expand Down